File: mkpreload.lua

package info (click to toggle)
ion3 20080825-1
  • links: PTS
  • area: non-free
  • in suites: lenny
  • size: 3,824 kB
  • ctags: 4,951
  • sloc: ansic: 44,434; makefile: 501; sh: 421; ruby: 90
file content (32 lines) | stat: -rw-r--r-- 539 bytes parent folder | download | duplicates (4)
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}
};
]])