added libwrap to genkernel() for wrapping require style libs

This commit is contained in:
Izaya 2017-09-13 13:15:38 +10:00
parent c76bc60a20
commit da62de5514

View File

@ -22,6 +22,10 @@ function genkernel(modlistf,kname)
nk=nk.."function "..tw[2].."(...)\n"
apfile(tw[3])
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
apfile(tw[2])
else