WIN32 versions of io functions

This commit is contained in:
Thomas Bernard
2018-02-16 02:25:23 +01:00
parent d924e0b827
commit c48e881a54
3 changed files with 89 additions and 11 deletions

View File

@@ -131,6 +131,10 @@ void Display_syntax(void)
void Warning_function(const char *message, const char *filename, int line_number, const char *function_name)
{
printf("Warning in file %s, line %d, function %s : %s\n", filename, line_number, function_name, message);
#if defined(_MSC_VER) && defined(DEBUG)
OutputDebugStringA(message);
OutputDebugStringA("\n");
#endif
}