-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathutils.h
executable file
·43 lines (32 loc) · 931 Bytes
/
utils.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// The core library - copyright GarageGames. The core library is released under the MIT Open Source software license. See /license.txt in this distribution for specific license terms.
#if 0
void output_debug_string();
void debug_break();
void exit(int code);
void alert_ok(const char *window_title, const char *message);
void sleep(uint32 millisecond_count);
#elif defined(PLATFORM_WIN32)
void output_debug_string(const char *string)
{
OutputDebugStringA(string);
}
void debug_break()
{
DebugBreak();
}
void exit(int code)
{
ExitProcess(code);
}
void alert_ok(const char *window_title, const char *message)
{
ShowCursor(true);
MessageBoxA(NULL, message, window_title, MB_ICONINFORMATION | MB_SETFOREGROUND | MB_TASKMODAL | MB_OK);
}
void sleep(uint32 millisecond_count)
{
Sleep(millisecond_count);
}
#elif defined(PLATFORM_MAC_OSX)
#elif defined(PLATFORM_LINUX)
#endif