# MCBasicDefines.h File Reference

## Defines
#define | nil 0
#define | ReturnIfNULL(e)
#define | ReturnIfNil(e)
#define | STATIC_CAST(varOfType, varToCast) (varToCast)
#define | ASSIGN_CAST(var, value) var= (value)
#define | FOUR_PI 12.5663706143592
#define | TWO_PI 6.28318530717959
#define | PI 3.14159265358979323846
#define | PI2 1.57079632679489661923
#define | PI4 0.78539816339744830966
#define | EXP 2.71828182845904523536
#define | SQRT2 1.41421356237309504880
#define | INV_SQRT2 0.70710678118654752440
#define | DEG_RAD 0.0174532925199433
#define | RAD_DEG 57.2957795130823
#define | kUINT8_MIN 0
#define | kUINT8_MAX 255
#define | kINT8_MIN -128
#define | kINT8_MAX 127
#define | kUINT16_MIN 0
#define | kUINT16_MAX 65535
#define | kINT16_MIN -32768
#define | kINT16_MAX 32767
#define | kUINT32_MIN 0
#define | kUINT32_MAX 0xFFFFFFFF
#define | kINT32_MAX 2147483647
#define | kINT32_MIN (-kINT32_MAX-1)
#define | __STR1__(x) #x
#define | __STR2__(x) __STR1__(x)
#define | __MESSAGE__(x) message (__FILE__ "(" __STR2__(__LINE__) ") : " #x)

## Define Documentation

#define __MESSAGE__ | ( | x |  | ) | message (__FILE__ "(" __STR2__(__LINE__) ") : " #x)

#define __STR1__ | ( | x |  | ) | #x

#define __STR2__ | ( | x |  | ) | __STR1__(x)

#define ASSIGN_CAST | ( | var,
|  | value |  | ) | var= (value)

#define DEG_RAD 0.0174532925199433

#define EXP 2.71828182845904523536

#define FOUR_PI 12.5663706143592

#define INV_SQRT2 0.70710678118654752440

#define kINT16_MAX 32767

#define kINT16_MIN -32768

#define kINT32_MAX 2147483647

#define kINT32_MIN (-kINT32_MAX-1)

#define kINT8_MAX 127

#define kINT8_MIN -128

#define kUINT16_MAX 65535

#define kUINT16_MIN 0

#define kUINT32_MAX 0xFFFFFFFF

#define kUINT32_MIN 0

#define kUINT8_MAX 255

#define kUINT8_MIN 0

#define nil 0

#define PI 3.14159265358979323846

#define PI2 1.57079632679489661923

#define PI4 0.78539816339744830966

#define RAD_DEG 57.2957795130823

#define ReturnIfNil | ( | e |  | ) |

Value:

    if((e) == nil) return; \
                                                    else 0;

#define ReturnIfNULL | ( | e |  | ) |

Value:

    if((e) == NULL) return; \
                                                    else 0;

#define SQRT2 1.41421356237309504880

#define STATIC_CAST | ( | varOfType,
|  | varToCast |  | ) | (varToCast)

#define TWO_PI 6.28318530717959