This commit is contained in:
romkazvo
2023-08-07 19:29:24 +08:00
commit 34d6c5d489
4832 changed files with 1389451 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
#ifndef _RC_DEBUG_LOG_HDR_
#define _RC_DEBUG_LOG_HDR_
inline void DebugLog (const char* szFormat, ...)
{
FILE* f = fopen ("Rc.Debug.log", "wa");
if (!f)
return;
va_list args;
va_start (args, szFormat);
vfprintf (f, szFormat, args);
fprintf (f, "\n");
vprintf (szFormat, args);
printf ("\n");
va_end(args);
fclose (f);
}
#endif