Add support for M_PRINT
This commit is contained in:
1 parent
42184f69db
commit
29c4ba3dcc
2 files changed
+53
-1
No files matched your search
@@ -118,11 +118,25 @@ static void test_array(void)
|
||||
}
|
||||
}
|
||||
|
||||
static void test_print(void)
|
||||
{
|
||||
int x = 0;
|
||||
M_PRINT("X= ", x, "\n");
|
||||
M_LET( (s, "Hello"), string_t) {
|
||||
M_PRINT("s=", s, "\n");
|
||||
}
|
||||
M_LET( (a, 3,4,5), array_int_t) {
|
||||
M_PRINT("a=", a, "\n");
|
||||
}
|
||||
}
|
||||
|
||||
int main(void)
|
||||
{
|
||||
freopen("atmp-generic.dat", "w", stdout);
|
||||
string_t p;
|
||||
test_string(p);
|
||||
test_array();
|
||||
test_print();
|
||||
exit(0);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user