From 2e265404916ae5135139bdfbb920c1a1f14c3b17 Mon Sep 17 00:00:00 2001 From: bright Date: Tue, 10 Aug 2021 21:30:21 +0000 Subject: [PATCH] Upload New File --- eacmapper/dbg.hpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 eacmapper/dbg.hpp diff --git a/eacmapper/dbg.hpp b/eacmapper/dbg.hpp new file mode 100644 index 0000000..6298c86 --- /dev/null +++ b/eacmapper/dbg.hpp @@ -0,0 +1,18 @@ +#pragma once +#include "stdfax.hpp" + +namespace dbg +{ + void dbg_print( const char* msg, ... ) + { + va_list args; + va_start( args, msg ); + + char buffer[512]; + memset( buffer, 0, sizeof( buffer ) ); + mini_vsprintf_s( buffer, sizeof( buffer ), msg, args ); + + OutputDebugStringA( buffer ); + return va_end(args); + } +} \ No newline at end of file