Released version 3-2014010502
[notion.git] / build / mkpreload.lua
blob184644a1eea19c498f85b8c4b6fb52c9efc8bc62
2 io.stdout:write([[
3 /* Automatically generated. */
5 #include <ioncore/modules.h>
7 ]]);
9 for _, v in ipairs({...}) do
10 io.stdout:write(string.format([[
11 extern bool %s_init();
12 extern void %s_deinit();
13 ]], v, v));
15 end
17 io.stdout:write([[
19 WStaticModuleInfo ioncore_static_modules[]={
20 ]])
22 for _, v in ipairs({...}) do
23 io.stdout:write(string.format(
24 ' {"%s", %s_init, %s_deinit, FALSE},\n',
25 v, v, v));
26 end
28 io.stdout:write([[
29 {NULL, NULL, NULL, FALSE}
31 ]])