MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / main

Function main

test/life.c:79–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79int main(int argc, char **argv)
80{
81 int w, h, i;
82 int arg = argc > 1 ? argv[1][0] - '0' : 3;
83 switch(arg) {
84 case 0: return 0; break;
85 case 1: w = h = 32; i = 2500; break;
86 case 2: w = h = 32; i = 13000; break;
87 case 3: w = h = 32; i = 24000; break;
88 case 4: w = h = 32; i = 5*24000; break;
89 case 5: w = h = 32; i = 10*24000; break;
90 default: printf("error: %d\\n", arg); return -1;
91 }
92
93 printf("life: %d,%d,%d,%d\n", arg, w, h, i);
94 game(w, h, i);
95
96 return 0;
97}
98

Callers

nothing calls this directly

Calls 2

printfFunction · 0.85
gameFunction · 0.85

Tested by

no test coverage detected