Modulinos: Difference between revisions
Content added Content deleted
(Added LLVM) |
|||
Line 5: | Line 5: | ||
=={{header|C}}== |
=={{header|C}}== |
||
C programs |
C programs cannot do scripted main, because main() is implicitly included by another program, test.c, even when scriptedmain.h is empty. |
||
The following example will not work with another program, test.c, due to duplicate main() functions at compile time. |
|||
<lang c>#include "scriptedmain.h" |
<lang c>#include "scriptedmain.h" |
||
Line 31: | Line 31: | ||
return 0; |
return 0; |
||
}</lang> |
}</lang> |
||
=={{header|C++}}== |
=={{header|C++}}== |