shithub: scc

ref: 381a14fc9775e9f2cabbac45a4586f55feefc39c
dir: /src/libscc/debug.c/

View raw version
static char sccsid[] = "@(#) ./lib/scc/debug.c";
#include <stdarg.h>
#include <stdio.h>

#include <scc/scc.h>

int debug;

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