00001
00002
00003
00004
00005
00006
00007
00008
00009
00011
00012
00021 #ifndef LT_STATUS_H
00022 #define LT_STATUS_H
00023
00024 #if defined(LT_COMPILER_MS)
00025 #pragma warning(push,4)
00026 #endif
00027
00039 typedef lt_uint32 LT_STATUS;
00040
00041
00046
00052 #define LT_STS_Success ((LT_STATUS)0)
00053
00060 #define LT_STS_Failure ((LT_STATUS)1)
00061
00069 #define LT_STS_Uninit ((LT_STATUS)2)
00070
00079 #define LT_STS_BadParam ((LT_STATUS)3)
00080
00094 #define LT_STS_BadContext ((LT_STATUS)4)
00095
00102 #define LT_STS_ForeignError ((LT_STATUS)5)
00103
00113 #define LT_STS_NotReached ((LT_STATUS)6)
00114
00121 #define LT_STS_NullPointer ((LT_STATUS)7)
00122
00129 #define LT_STS_OutOfMemory ((LT_STATUS)8)
00130
00135 #define LT_STS_Unimplemented ((LT_STATUS)9)
00136
00144
00146 #define LT_SUCCESS( err ) ((err)==LT_STS_Success)
00147
00148 #define LT_FAILURE( err ) ((err)!=LT_STS_Success)
00149
00153 #if defined(LT_COMPILER_MS)
00154 #pragma warning(pop)
00155 #endif
00156
00157 #endif