1 #include "linux_syscall.h"
2 #include "linux_console.h"
4 #define MACRO(hello, hello2) 1
18 #define FOO() "hah?\n"
19 #define BAR(X) ( X " There\n" )
21 #define SUM(X, Y) ((X) + (Y))
22 #define REALLY_SUM(...) SUM(__VA_ARGS__)
25 #define hash_hash # /* comment */ ## #
27 #define in_between(a) mkstr(a)
28 #define join(c, d) in_between(c hash_hash d)
31 #define print_debug(X) ECHO(print_debug(X))
33 static void test(void)
36 print_debug(BAR("Hi!!"));
37 print_debug(BAZ(This should be shown as a string... "enclosed in quotes") "\n");
38 print_debug("This is a quote\" see\n");
39 print_debug(BAR(BAZ(I)));
41 print_debug_hex32(REALLY_SUM(1,2));
44 print_debug(join(x, y) "\n");
46 print_debug("romcc: ");
47 print_debug_hex8(__ROMCC__);
49 print_debug_hex8(__ROMCC_MINOR__);
52 print_debug(__FILE__);
54 print_debug(__func__);
56 print_debug_hex32(__LINE__);
59 print_debug("Compiled at: ");
60 print_debug(__DATE__);
62 print_debug(__TIME__);
65 print_debug("Compile time: ");
66 print_debug(__TIME__);