debug.c - scc - simple c99 compiler
HTML git clone git://git.simple-cc.org/scc
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
debug.c (242B)
---
1 #include <stdarg.h>
2 #include <stdio.h>
3
4 #include <scc/scc.h>
5
6 int enadebug;
7
8 void
9 dbg(const char *fmt, ...)
10 {
11 if (!enadebug)
12 return;
13 va_list va;
14 va_start(va, fmt);
15 vfprintf(stderr, fmt, va);
16 putc('\n', stderr);
17 va_end(va);
18 return;
19 }