Talk:Modulinos: Difference between revisions

Content added Content deleted
Line 50: Line 50:
in scriptedmain.c, when the main file is being used in a library?
in scriptedmain.c, when the main file is being used in a library?


Yes, the C program is ambiguous. I added a note about scriptedmain.h, which is supposed to be empty; it only serves as a placeholder for a C program (https://github.com/mcandre/scriptedmain/blob/master/test.c), which loads scriptedmain.c to confirm that indeed scriptedmain's main() is not executed. --[[User:Mcandre|Mcandre]]
Test the C program yourself. As long as scriptedmain.h is missing the main() prototype, a second file test.c will not execute scriptedmain.c's main(). --[[User:Mcandre|Mcandre]]