Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
main function of the application
[simgrid.git] / win32_test_app / include / TDefs.h
1 #ifndef __DEFS_H__
2 #define __DEFS_H__
3
4 #include <assert.h>
5
6 /* NULL definition*/
7 #ifndef NULL
8 #ifdef __cplusplus
9 #define NULL 0
10 #else
11 #define NULL ((void *)0)
12 #endif
13 #endif /* #ifndef NULL*/
14
15 #if !defined(__cplusplus) && !defined(__BOOL_TYPE_DEFINED)
16 typedef int bool;
17 #define __BOOL_TYPE_DEFINED
18 #endif /* #ifndef __cplusplus*/
19
20 #ifndef __SSIZE_TYPE_DEFINED
21 typedef int ssize_t;
22 #define __SSIZE_TYPE_DEFINED
23 #endif /* #ifndef __SSIZE_TYPE_DEFINED */
24
25 #ifndef true
26 #define true 1
27 #endif /* #ifndef true*/
28
29 #ifndef false
30 #define false 0
31 #endif /* #ifndef false*/
32
33 /* Asserts that a condition is true.*/
34 #define ASSERT(c)                                               assert(c)
35 /* Asserts that a pointer is not NULL.*/
36 #define ASSERT_NOT_NULL(p)                              assert(NULL != p)
37
38 /* Error number type (int) */
39 #ifndef __ERRNO_TYPE_DEFINED
40 typedef int errno_t;
41 #define __ERRNO_TYPE_DEFINED
42 #endif /* #ifndef __ERRNO_TYPE_DEFINED */
43
44 /* comment this line if you don't want activate the verbose mode. */
45 #define __VERBOSE 
46
47 #endif /*  #ifndef __DEFS_H__ */