From 3f5efae581aa4f594e1550c2657d0af2d6f31ce3 Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Wed, 27 Mar 2013 23:54:47 -0400 Subject: [PATCH] Log with no formatting. --- toolbox/toolbox.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/toolbox/toolbox.h b/toolbox/toolbox.h index a0a144c..e9413c2 100644 --- a/toolbox/toolbox.h +++ b/toolbox/toolbox.h @@ -18,6 +18,11 @@ namespace ToolBox if (Trace) fprintf(stderr, format, args...); } + inline void Log(const char *format) + { + if (Trace) fputs(format, stderr); + } + void dispatch(uint16_t trap);