Divide Framework
0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
main.cpp
Go to the documentation of this file.
1
2
3
#include "
engineMain.h
"
4
5
#if defined(_WIN32)
6
#pragma comment(linker, "/subsystem:\"windows\" /entry:\"mainCRTStartup\""
)
7
#endif
8
9
int
main
(
int
argc,
char
**
argv
)
10
{
11
_MM_SET_FLUSH_ZERO_MODE( _MM_FLUSH_ZERO_ON );
12
std::set_new_handler( []()
noexcept
{ assert(
false
&&
"Out of memory!"
); } );
13
14
15
Divide::Engine
engine{};
16
const
Divide::ErrorCode
err = engine.
run
(argc,
argv
);
17
18
return
static_cast<
int
>
(err) * -1;
19
}
main
int main(int argc, char **argv)
Definition:
main.cpp:9
argv
char * argv[]
Definition:
main.cpp:8
engineMain.h
Divide::ErrorCode
ErrorCode
Definition:
ErrorCodes.h:37
Divide::Engine
Definition:
engineMain.h:41
Divide::Engine::run
ErrorCode run(const int argc, char **argv)
Definition:
engineMain.cpp:30
Source
Executable
main.cpp
Generated on Fri May 17 2024 16:59:52 for Divide Framework by
1.9.6