added libwrap to genkernel() for wrapping require style libs
This commit is contained in:
parent
c76bc60a20
commit
da62de5514
@ -22,6 +22,10 @@ function genkernel(modlistf,kname)
|
|||||||
nk=nk.."function "..tw[2].."(...)\n"
|
nk=nk.."function "..tw[2].."(...)\n"
|
||||||
apfile(tw[3])
|
apfile(tw[3])
|
||||||
nk=nk.."\nend\n"
|
nk=nk.."\nend\n"
|
||||||
|
elseif tw[1] == "libwrap" then
|
||||||
|
nk=nk.."function "..tw[2].."(...)\n"
|
||||||
|
apfile(tw[3])
|
||||||
|
nk=nk.."\nend\n_G."..tw[2].." = "..tw[2].."()\n"
|
||||||
elseif tw[1] == "include" then
|
elseif tw[1] == "include" then
|
||||||
apfile(tw[2])
|
apfile(tw[2])
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user