Nebula
Toggle main menu visibility
Loading...
Searching...
No Matches
win32sysfunc.h
Go to the documentation of this file.
1
#pragma once
2
//------------------------------------------------------------------------------
12
#include "
core/types.h
"
13
#include "
core/exithandler.h
"
14
namespace
System
15
{
16
class
SystemInfo;
17
}
18
19
//------------------------------------------------------------------------------
20
namespace
Win32
21
{
22
class
SysFunc
23
{
24
public
:
26
static
void
Setup
();
28
static
void
Exit
(
int
exitCode);
30
static
void
Error
(
const
char
* error);
32
static
void
MessageBox
(
const
char
* msg);
34
static
void
DebugOut
(
const
char
* msg);
36
static
void
Sleep
(
double
sec);
37
38
private
:
39
friend
class
Core::ExitHandler
;
41
static
const
Core::ExitHandler
*
RegisterExitHandler
(
const
Core::ExitHandler
* exitHandler);
42
43
static
bool
volatile
SetupCalled
;
44
static
const
Core::ExitHandler
*
ExitHandlers
;
// forward linked list of exit handlers
45
static
System::SystemInfo
systemInfo
;
46
};
47
48
}
// namespace Win32
49
//------------------------------------------------------------------------------
Core::ExitHandler
ExitHandlers are static objects which register themselves automatically once at startup and are calle...
Definition
exithandler.h:22
Posix::SysFunc
Provides Posix specific helper functions.
Definition
posixsysfunc.h:25
Win32::SysFunc::systemInfo
static System::SystemInfo systemInfo
Definition
win32sysfunc.h:45
Win32::SysFunc::DebugOut
static void DebugOut(const char *msg)
print a message on the debug console
Win32::SysFunc::Sleep
static void Sleep(double sec)
sleep for a specified amount of seconds
Win32::SysFunc::Error
static void Error(const char *error)
display an error message box
Win32::SysFunc::SetupCalled
static bool volatile SetupCalled
Definition
win32sysfunc.h:43
Win32::SysFunc::ExitHandlers
static const Core::ExitHandler * ExitHandlers
Definition
win32sysfunc.h:44
Win32::SysFunc::Setup
static void Setup()
setup lowlevel static objects (must be called before spawning any threads)
Win32::SysFunc::RegisterExitHandler
static const Core::ExitHandler * RegisterExitHandler(const Core::ExitHandler *exitHandler)
register an exit handler which will be called from within Exit()
Win32::SysFunc::MessageBox
static void MessageBox(const char *msg)
display a message box which needs to be confirmed by the user
Win32::SysFunc::Exit
static void Exit(int exitCode)
exit process, and to proper cleanup, memleak reporting, etc...
exithandler.h
System
Definition
osxsysfunc.h:15
Win32
[TODO: Describe Win32 subsystem]
types.h
code
foundation
core
win32
win32sysfunc.h
Generated on
for Nebula. Dark theme by
Tilen Majerle
. All rights reserved.