rgc_utils.h
Go to the documentation of this file.
1 /*
2  * 2003-
3  * rgc_utils.h : R.Hanai
4  */
5 
6 #ifndef __RGC_UTILS
7 #define __RGC_UTILS
8 
9 /*
10  * debugging tools
11  */
12 #if (__DBG_LV == 1)
13 #define DPRINT1 debug_printf
14 #define DPRINT2 debug_printf
15 #elif (__DBG_LV == 2)
16 #define DPRINT1
17 #define DPRINT2 debug_printf
18 #else
19 #define DPRINT1
20 #define DPRINT2
21 #endif
22 
23 //#define NDEBUG
24 #include <assert.h>
25 //#define ASSERT
26 //#define ASSERT(condition) assert(condition) /* C standart assertion */
27 
28 #define ASSERT(condition) \
29 { \
30  if (!(condition)) { hoge(); } \
31 }
32 /* with this, we can set break-points where ASSERTs are inserted */
33 
34 
35 /* performance evaluation tools */
36 void init_utils();
37 unsigned current_utime();
38 
39 #ifdef __PAPI
40 void papi_init();
41 void papi_print_counters();
42 #endif
43 
44 
45 #endif
current_utime
unsigned current_utime()
Definition: rgc_utils.c:81
init_utils
void init_utils()
Definition: rgc_utils.c:142


euslisp
Author(s): Toshihiro Matsui
autogenerated on Thu Jun 15 2023 02:06:43