Internal RDM Startup API used by startup macros. More...
#include "rdmstartuptypes.h"
Macros |
|
#define | RDMSTARTUPAPI_H |
Functions |
|
int32_t | rdm_threadMain (int32_t(*main)(int32_t argc, const char *const *argv), int argc, const char *const *argv) |
Start the main thread and call the named main function. More... |
|
Detailed Description
Internal RDM Startup API used by startup macros.
Macro Definition Documentation
RDMSTARTUPAPI_H
#define RDMSTARTUPAPI_H |
Function Documentation
rdm_threadMain()
int32_t rdm_threadMain | ( | int32_t(*)(int32_t argc, const char *const *argv) | main, |
int | argc, | ||
const char *const * | argv | ||
) |
Start the main thread and call the named main function.
This function is called directly by the statup macros (main) and takes care of setting up the main thread. Using the startup macros and this function is not required for using RDM. RDM uses this to be able to do required special handling for certain embedded platform.
On Linux and Unix the implementation behind this function is simply to call the named main function without any furher processing.
On Windows the implementation also checks that the ANSI Code Page is CP_UTF8. If not, then the arguments are required to only contain characters from the ASCII character set.
Other plaforms may have other steps before the named main function is called.
- Parameters
-
main The named main function that is to be called argc Argument count passed on from main argv Argument vector passed on from main