trunk: changeset 1886
[notion/jeffpc.git] / build / mkpreload.lua
blob6b51cebf46c12cb9e7e157cec1f798f01d2e599d
2 io.stdout:write([[
3 /* Automatically generated. */
5 #include <ioncore/modules.h>
7 ]]);
9 for _, v in ipairs(arg) 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(arg) 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 ]])