MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / main

Function main

src/ExampleMain.cpp:44–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42//extern "C" int nme_register_prims();
43
44extern "C" int main(int argc, char *argv[])
45{
46 // Do this first
47 hxcpp_set_top_of_stack();
48
49 // Register additional ndll libaries ...
50 // nme_register_prims();
51
52 //printf("Begin!\n");
53 const char *err = hxRunLibrary();
54 if (err) {
55 // Unhandled exceptions ...
56 fprintf(stderr,"Error %s\n", err );
57 return -1;
58 }
59 //printf("Done!\n");
60 return 0;
61}

Callers

nothing calls this directly

Calls 2

hxcpp_set_top_of_stackFunction · 0.85
hxRunLibraryFunction · 0.85

Tested by

no test coverage detected