Sign in
pigweed
/
third_party
/
github
/
nanopb
/
nanopb
/
16ca8c518fc44417fba0e0168f3a2e3dcb3f0a3c
/
.
/
examples
/
platformio
/
src
/
test.h
blob: 63895dacdf8bbedcd15eb696f98d2fce5736e808 [
file
] [
log
] [
blame
]
#include
<stdio.h>
#define
TEST
(
x
)
\
if
(!(
x
))
{
\
fprintf
(
stderr
,
"\033[31;1mFAILED:\033[22;39m %s:%d %s\n"
,
__FILE__
,
__LINE__
,
#x); \
status
=
1
;
\
}
else
{
\
printf
(
"\033[32;1mOK:\033[22;39m %s\n"
,
#x); \
}