shithub: scc

ref: 4c09eaec1c1f81e175b6e8b6266e8a2c9aa7afaa
dir: /lib/scc/debug.c/

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

#include "../../inc/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;
}