blob: b3715a3193e9fb71b41249833a474909fa846e1c (
plain) (
blame)
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
|
#ifndef plat_h
#define plat_h
#include <stdint.h>
#ifdef assert
#undef assert
#endif
#ifdef DEBUG
#define assert(expr) \
imp_assert( \
expr, \
#expr, \
__FILE__, \
__LINE__ \
)
#else
#define assert(expr)
#endif
int imp_assert(
int val,
const char* expr,
const char* file,
int line
);
void print(const char* fmt, ...);
void print_err(const char* fmt, ...);
void print_war(const char* fmt, ...);
void pbreak(int code);
uint64_t get_time(void);
#endif
|