void NitroStartUp( void );
None.
None.
This function is for use with C++.
It describes processes that you want to perform before C++ static constructor calls. In the default implementation nothing is processed. It is compiled as a function that has weak symbols. If a NitroStartUp
function is newly defined in an application, the new function will have priority when linking.
Generally speaking the Nitro runtime binary startup processes are as below.
NitroStartUp
.
NitroMain
entry.
As you can see from above, NitroStartUp
is called before the static constructor. If you are creating NITRO applications and want to perform initialization processes before executing a static constructor, you can describe them in NitroStartUp
.
Because the static constructor is executed before NitroMain
, if you dynamically secure memory in a static constructor, you must initialize (new/delete
) a heap memory managing module, etc, in NitroStartUp
.
02/27/2004 Initial version