diff options
Diffstat (limited to 'common.c')
| -rw-r--r-- | common.c | 16 |
1 files changed, 11 insertions, 5 deletions
@@ -1,9 +1,15 @@ -#include <stdio.h> +#include "debug.h" -void print_int(int i) { - printf("%d\n", i); +int debug_int(int i) { + debug("%d\n", i); + return i; } -void print_str(char *s) { - printf("%s\n", s); +char *debug_str(char *s) { + debug("%s\n", s); + return s; +} + +int int_if(int p, int a, int b) { + return p ? a : b; } |
