rgc_utils.h
Go to the documentation of this file.
00001 /* 
00002  * 2003-
00003  * rgc_utils.h : R.Hanai
00004  */
00005 
00006 #ifndef __RGC_UTILS
00007 #define __RGC_UTILS
00008 
00009 /*
00010  * debugging tools
00011  */
00012 #if (__DBG_LV == 1)
00013 #define DPRINT1 debug_printf
00014 #define DPRINT2 debug_printf
00015 #elif (__DBG_LV == 2)
00016 #define DPRINT1 
00017 #define DPRINT2 debug_printf
00018 #else
00019 #define DPRINT1 
00020 #define DPRINT2
00021 #endif
00022 
00023 //#define NDEBUG
00024 #include <assert.h>
00025 //#define ASSERT 
00026 //#define ASSERT(condition) assert(condition) /* C standart assertion */
00027 
00028 #define ASSERT(condition) \
00029 { \
00030   if (!(condition)) { hoge(); } \
00031 } 
00032 /* with this, we can set break-points where ASSERTs are inserted */
00033 
00034 
00035 /* performance evaluation tools */
00036 void init_utils();
00037 unsigned current_utime();
00038 
00039 #ifdef __PAPI
00040 void papi_init();
00041 void papi_print_counters();
00042 #endif
00043 
00044 
00045 #endif


euslisp
Author(s): Toshihiro Matsui
autogenerated on Thu Sep 3 2015 10:36:20