HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_Main.h File Reference
#include <UT/UT_Exit.h>
+ Include dependency graph for UT_Main.h:

Go to the source code of this file.

Macros

#define UT_MAIN(THE_MAIN)
 

Macro Definition Documentation

#define UT_MAIN (   THE_MAIN)
Value:
int main(int argc, char *argv[]) \
{ \
UT_Exit::exitWithSpecificCode(THE_MAIN(argc, argv)); \
} \
int main(int argc, char *argv[])
Definition: cvexsample.C:147
static SYS_FUNC_NORETURN void exitWithSpecificCode(int exit_code)

Provides platform independent main() wrapper for UTF-8 command line args

Example usage:

static inline int
int theMain(int argc, const char *argv[])
{
...etc...
}
UT_MAIN(theMain)

Definition at line 60 of file UT_Main.h.