diff deps/Platinum/ThirdParty/Neptune/Source/System/StdC/NptStdcDebug.cpp @ 0:3425707ddbf6

Initial import (hopefully this mercurial stuff works...)
author fraserofthenight
date Mon, 06 Jul 2009 08:06:28 -0700
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/deps/Platinum/ThirdParty/Neptune/Source/System/StdC/NptStdcDebug.cpp	Mon Jul 06 08:06:28 2009 -0700
@@ -0,0 +1,39 @@
+/*****************************************************************
+|
+|      File: NptStdcDebug.c
+|
+|      Atomix - Debug Support: StdC Implementation
+|
+|      (c) 2002-2006 Gilles Boccon-Gibod
+|      Author: Gilles Boccon-Gibod (bok@bok.net)
+|
+ ****************************************************************/
+
+/*----------------------------------------------------------------------
+|       includes
++---------------------------------------------------------------------*/
+#include <stdarg.h>
+#include <stdio.h>
+
+#include "NptConfig.h"
+#include "NptDefs.h"
+#include "NptTypes.h"
+#include "NptDebug.h"
+
+/*----------------------------------------------------------------------
+|       NPT_Debug
++---------------------------------------------------------------------*/
+void
+NPT_Debug(const char* format, ...)
+{
+#if defined(NPT_DEBUG)
+    va_list args;
+    va_start(args, format);
+
+    vprintf(format, args);
+
+    va_end(args);
+#else
+    NPT_COMPILER_UNUSED(format);
+#endif
+}