Ylva And Malin
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
game
src
ym
test
ym_test.h
Go to the documentation of this file.
1
#pragma once
2
4
// Taken directly from:
5
// http://www.jera.com/techinfo/jtns/jtn002.html
6
//
7
// Just changed some names, and minor formatting.
9
10
#define YM_CHECK(message, test) \
11
do \
12
{ \
13
if (!(test)) \
14
return "\033[0;31m" message "\033[0m"; \
15
} while (0)
16
17
18
#define YM_TEST(test) \
19
do \
20
{ \
21
const char* message = test(); \
22
tests_run++; \
23
if (message) \
24
return message; \
25
} while (0)
26
27
extern
int
tests_run
;
tests_run
int tests_run
Definition:
main.c:5
Generated by
1.8.11