build system revision
[vg.git] / vg_tool.c
diff --git a/vg_tool.c b/vg_tool.c
new file mode 100644 (file)
index 0000000..8ac0832
--- /dev/null
+++ b/vg_tool.c
@@ -0,0 +1,19 @@
+#include "vg_tool.h"
+
+/* unity build of vg components */
+#include "vg_log.c"
+#include "vg_string.c"
+#include "vg_opt.c"
+#include "vg_msg.c"
+#include "vg_mem.c"
+#include "vg_mem_queue.c"
+#include "vg_io.c"
+
+void vg_fatal_error( const char *fmt, ... )
+{
+   va_list args;
+   va_start( args, fmt );
+   _vg_logx_va( stderr, NULL, "fatal", KRED, fmt, args );
+   va_end( args );
+   exit(1);
+}