shithub: scc

ref: c1b4b8354a76cc8c9aa13757e8b3db8d1b5a7c39
dir: /src/libscc/debug.c/

View raw version
#include <stdarg.h>
#include <stdio.h>

#include <scc/scc.h>

int enadebug;

void
dbg(const char *fmt, ...)
{
	if (!enadebug)
		return;
	va_list va;
	va_start(va, fmt);
	vfprintf(stderr, fmt, va);
	putc('\n', stderr);
	va_end(va);
	return;
}