public
/
fuzix_sim.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Fix warnings, add -std=c++11 for systems that default to -std=c++03 or lower
[fuzix_sim.git]
/
logmacro.h
1
#ifndef _LOGMACRO_H
2
#define _LOGMACRO_H 1
3
4
#include <stdio.h>
5
6
#if 0 // set to 1 to enable debugging printf
7
#define LOG(...) fprintf(stderr, __VA_ARGS__)
8
#define logerror(...) fprintf(stderr, __VA_ARGS__)
9
#else
10
#define LOG(msg, ...)
11
#define logerror(msg, ...)
12
#endif
13
14
#endif