summaryrefslogtreecommitdiff
path: root/common.c
blob: 8e144d1b7cad285de1f99110caa89269f63dbe94 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "debug.h"

int debug_int(int i) {
    debug("%d\n", i);
    return i;
}

char *debug_str(char *s) {
    debug("%s\n", s);
    return s;
}

int int_if(int p, int a, int b) {
    return p ? a : b;
}