CyberEngineMkIII
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Functions
CYBEntry.cpp File Reference

The entry point to the program. Sole purpose is to call Main::Entry and return. Also contains exceptional functions that cannot be included in main library for testing purposes. More...

#include "../Engine/CYB.hpp"
Include dependency graph for CYBEntry.cpp:

Go to the source code of this file.

Functions

int main (const int ANumArguments, const oschar_t *const *const AArguments)
 Program entry point. Call CYB::Engine::Init::Run. More...
 
void TestLog (const char *AMsg) noexcept
 Forces a log write in testing, no-op in the runtime. More...
 
void TestLogNum (const long long ANumber) noexcept
 Forces a log write in testing, no-op in the runtime. More...
 

Detailed Description

The entry point to the program. Sole purpose is to call Main::Entry and return. Also contains exceptional functions that cannot be included in main library for testing purposes.

Definition in file CYBEntry.cpp.

Function Documentation

int main ( const int  ANumArguments,
const oschar_t *const *const  AArguments 
)

Program entry point. Call CYB::Engine::Init::Run.

Parameters
ANumArgumentsThe number of command line arguments
AArgumentsThe command line arguments
Returns
Never returns
Thread Safety
This function may only be called once by the C++ runtime
Exception Safety
This function does not throw exceptions

Definition at line 19 of file CYBEntry.cpp.

19  {
20  CYB::API::Assert::LessThanOrEqual(0, ANumArguments);
21  CYB::Engine::Core::Run(static_cast<unsigned int>(ANumArguments), AArguments);
23 }
static void HCF(void) noexcept
Indicates unreachable code. Implementation can be overriden by defining ASSERTION_OVERRIDE.
Definition: CYBEntry.cpp:26
static void LessThanOrEqual(const AType &ALHS, const AType &ARHS) noexcept
Less than or equal assertion function. May not be evaluated.
static void Run(const unsigned int ANumArguments, const oschar_t *const *const AArguments) noexcept
Runs the engine and self terminates.
Definition: CYBCore.cpp:49

Here is the call graph for this function:

void TestLog ( const char *  AMsg)
noexcept

Forces a log write in testing, no-op in the runtime.

Parameters
AMsgThe message to log
Thread Safety
This function requires external synchronization

Definition at line 57 of file CYBEntry.cpp.

57  {
58  static_cast<void>(AMsg);
59 }
void TestLogNum ( const long long  ANumber)
noexcept

Forces a log write in testing, no-op in the runtime.

Parameters
ANumberThe number to log
Thread Safety
This function requires external synchronization

Definition at line 66 of file CYBEntry.cpp.

66  {
67  static_cast<void>(ANumber);
68 }