File: rgc_utils.h

package info (click to toggle)
euslisp 9.31%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 55,448 kB
  • sloc: ansic: 41,610; lisp: 3,339; makefile: 286; sh: 238; asm: 138; python: 53
file content (45 lines) | stat: -rw-r--r-- 728 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/* 
 * 2003-
 * rgc_utils.h : R.Hanai
 */

#ifndef __RGC_UTILS
#define __RGC_UTILS

/*
 * debugging tools
 */
#if (__DBG_LV == 1)
#define DPRINT1 debug_printf
#define DPRINT2 debug_printf
#elif (__DBG_LV == 2)
#define DPRINT1 
#define DPRINT2 debug_printf
#else
#define DPRINT1 
#define DPRINT2
#endif

//#define NDEBUG
#include <assert.h>
//#define ASSERT 
//#define ASSERT(condition) assert(condition) /* C standart assertion */

#define ASSERT(condition) \
{ \
  if (!(condition)) { hoge(); } \
} 
/* with this, we can set break-points where ASSERTs are inserted */


/* performance evaluation tools */
void init_utils();
unsigned current_utime();

#ifdef __PAPI
void papi_init();
void papi_print_counters();
#endif


#endif