Vidalia  0.3.1
Macros
GeoIpRecord.cpp File Reference
#include "GeoIpRecord.h"
#include <QStringList>

Go to the source code of this file.

Macros

#define IS_VALID_LATITUDE(x)   (((x) >= -90.0) && ((x) <= 90.0))
 
#define IS_VALID_LONGITUDE(x)   (((x) >= -180.0) && ((x) <= 180.0))
 

Macro Definition Documentation

◆ IS_VALID_LATITUDE

#define IS_VALID_LATITUDE (   x)    (((x) >= -90.0) && ((x) <= 90.0))

Verifies a latitude is between -90.0 and 90.0 degrees.

Definition at line 21 of file GeoIpRecord.cpp.

◆ IS_VALID_LONGITUDE

#define IS_VALID_LONGITUDE (   x)    (((x) >= -180.0) && ((x) <= 180.0))

Verifies a longitude is between -180.0 and 180.0 degrees.

Definition at line 23 of file GeoIpRecord.cpp.