summaryrefslogtreecommitdiffstats
path: root/twcommon.h
blob: 2c96d04e27d85c6308a513d131f32e6eda90163e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef TWCOMMON_HPP
#define TWCOMMON_HPP

#ifdef __cplusplus
extern "C" {
#endif

#include "gui/gui.h"
#define LOGERR(...) gui_print("E:" __VA_ARGS__)
#define LOGINFO(...) fprintf(stdout, "I:" __VA_ARGS__)

#define STRINGIFY(x) #x
#define EXPAND(x) STRINGIFY(x)

#ifdef __cplusplus
}
#endif

#endif  // TWCOMMON_HPP