1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
io.stdout:write([[
/* Automatically generated. */
#include <ioncore/modules.h>
]]);
for _, v in ipairs({...}) do
io.stdout:write(string.format([[
extern bool %s_init();
extern void %s_deinit();
]], v, v));
end
io.stdout:write([[
WStaticModuleInfo ioncore_static_modules[]={
]])
for _, v in ipairs({...}) do
io.stdout:write(string.format(
' {"%s", %s_init, %s_deinit, FALSE},\n',
v, v, v));
end
io.stdout:write([[
{NULL, NULL, NULL, FALSE}
};
]])
|