콘텐츠로 이동

2.1. 변수 타입

변수 타입을 정의한다.

typedef unsigned char M_Boolean // unsigned 8bit. TRUE 또는
// FALSE를 나타낸다.
typedef unsigned int M_Uint32 // unsigned 32 bit type
typedef unsigned short M_Uint16 // unsigned 16bit type
typedef unsigned char M_Uint8 // unsigned 8bit type
typedef signed int M_Int32 // signed 32bit type
typedef signed short M_Int16 // signed 16bit type
typedef signed char M_Int8 // signed 8bit type
typedef char M_Char // char type
typedef unsigned char M_Byte // unsigned 8bit type
typedef signed long long M_Int64 // signed 64bit type
typedef unsigned long long M_Uint64 // unsigned 64bit type
typedef unsigned short M_Ucode // unsigned 16bit. unicode

// character

typedef signed long M_Sint32 // signed 32bit type
typedef signed short M_Sint16 // signed 16bit type
#define NULL 0 //NULL 정의
#define TRUE 1 //TRUE정의
#define FALSE 0 //FALSE정의
#define inline __inline //inline정의