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 "UT_SubSystem.h"
+ Include dependency graph for UT_Main.h:
+ This graph shows which files directly or indirectly include this file:

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)); \
} \
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...
}
Examples:
CVEX/cvexsample.C, CVEX/simple.C, packedprim/packedprim.C, packedshareddata/packedshareddata.C, packedsphere/packedsphere.C, standalone/dsmprint.C, standalone/gengeovolume.C, standalone/geo2voxel.C, standalone/geoisosurface.C, standalone/i3ddsmgen.C, standalone/i3dsphere.C, standalone/msgpipe.C, standalone/standalone.C, standalone/tiledevice.C, and standalone/traverse.C.

Definition at line 62 of file UT_Main.h.