Code Review
/
apps
/
agl-service-can-low-level.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Include HVAC and meld with Toyota examples one.
[apps/agl-service-can-low-level.git]
/
libs
/
nanopb
/
tests
/
common
/
unittests.h
1
#include <stdio.h>
2
3
#define COMMENT(x) printf("\n----" x "----\n");
4
#define STR(x) #x
5
#define STR2(x) STR(x)
6
#define TEST(x) \
7
if (!(x)) { \
8
fprintf(stderr, "\033[31;1mFAILED:\033[22;39m " __FILE__ ":" STR2(__LINE__) " " #x "\n"); \
9
status = 1; \
10
} else { \
11
printf("\033[32;1mOK:\033[22;39m " #x "\n"); \
12
}
13
14