00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef GV_LOGIC_H
00018 #define GV_LOGIC_H
00019
00020 #ifdef __cplusplus
00021 extern "C" {
00022 #endif
00023
00024 #if defined HAVE_STDBOOL_H && ! defined __cplusplus
00025 #include <stdbool.h>
00026 #endif
00027
00028 #define NOT(v) (!(v))
00029
00030
00031 #if ! defined HAVE_BOOL && ! defined __cplusplus
00032 typedef unsigned char bool;
00033 #define false 0
00034 #define true NOT(false)
00035 #endif
00036
00037 #ifndef FALSE
00038 #define FALSE false
00039 #endif
00040 #ifndef TRUE
00041 #define TRUE true
00042 #endif
00043
00044 #ifndef NOTUSED
00045 #define NOTUSED(var) (void) var
00046 #endif
00047
00048 #ifndef NULL
00049 #define NULL (void *)0
00050 #endif
00051
00052 #ifndef NIL
00053 #define NIL(type) ((type)0)
00054 #endif
00055
00056 #ifdef __cplusplus
00057 }
00058 #endif
00059
00060 #endif
00061