Map<K,V> and MapIterator<K,V> for ZScript
This commit is contained in:
parent
1e5e65546d
commit
8b6a714d41
23 changed files with 2354 additions and 28 deletions
|
|
@ -36,6 +36,7 @@
|
|||
bool gameisdead;
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <cstdarg>
|
||||
#include <windows.h>
|
||||
#include "zstring.h"
|
||||
void I_DebugPrint(const char *cp)
|
||||
|
|
@ -46,10 +47,31 @@ void I_DebugPrint(const char *cp)
|
|||
OutputDebugStringW(wstr.c_str());
|
||||
}
|
||||
}
|
||||
|
||||
void I_DebugPrintf(const char *fmt,...)
|
||||
{
|
||||
if (IsDebuggerPresent())
|
||||
{
|
||||
va_list args;
|
||||
va_start(args, fmt);
|
||||
|
||||
FString s;
|
||||
s.VFormat(fmt, args);
|
||||
|
||||
va_end(args);
|
||||
|
||||
auto wstr = WideString(s);
|
||||
OutputDebugStringW(wstr.c_str());
|
||||
}
|
||||
}
|
||||
#else
|
||||
void I_DebugPrint(const char *cp)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
void I_DebugPrintf(const char *fmt,...)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
#include "engineerrors.h"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue