okey, i reply myself
Nota: here's no boolea in C -- instead use char, int or best unsigned char
Search found 2 matches
- Wed Oct 03, 2012 3:22 am
- Forum: SGDK
- Topic: How to declare boolean on SGDK?
- Replies: 6
- Views: 5977
- Wed Oct 03, 2012 3:13 am
- Forum: SGDK
- Topic: How to declare boolean on SGDK?
- Replies: 6
- Views: 5977
How to declare boolean on SGDK?
Source code part of SDK types.h:
/**
* \def FALSE
* FALSE define (equivalent to 0).
*/
#ifndef FALSE
#define FALSE 0
#endif
/**
* \def TRUE
* TRUE define (equivalent to 1).
*/
#ifndef TRUE
#define TRUE 1
#endif
/**
* \def NULL
* NULL define (equivalent to 0).
*/
#ifndef NULL
#define NULL ...
/**
* \def FALSE
* FALSE define (equivalent to 0).
*/
#ifndef FALSE
#define FALSE 0
#endif
/**
* \def TRUE
* TRUE define (equivalent to 1).
*/
#ifndef TRUE
#define TRUE 1
#endif
/**
* \def NULL
* NULL define (equivalent to 0).
*/
#ifndef NULL
#define NULL ...