History

make main() function optional in chuck_main

Spencer Salazar committed 8 years ago

Commit da8834a1 parent 13f67d41 file · +4 −0Browse files

Unified · Split

src/host/chuck_main.cpp+4−0
@@ -115,7 +115,11 @@ t_CKINT g_priority_low = 0x7fffffff; · 114 unmodified lines
115115 // name: main()
116116 // desc: ...
117117 //-----------------------------------------------------------------------------
118+#ifndef __CHUCK_NO_MAIN__
118119 int main( int argc, const char ** argv )
120+#else
121+int chuck_main( int argc, const char ** argv )
122+#endif // __CHUCK_NO_MAIN__
119123 {
120124 // parse, init, run!
121125 go( argc, argv );

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t