Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function include(path)
- if luadev2._func_table and luadev2._func_table[path] then
- luadev2._func_table[path]()
- end
- end
- luadev2._func_table['testinclude.lua'] = function()
- include("oh.lua")
- print(yeah)
- end)
- luadev2._func_table['oh.lua'] = function()
- include("packagepath.lua")
- function string.oh(str, pattern)
- local tbl = {}
- local index = 0
- for s in str:gmatch("?") do
- tbl[index] = s
- end
- PrintTable(tbl)
- end
- string.oh("1*45*2+2923")
- end)
- luadev2._func_table['packagepath.lua'] = function()
- print(package.cpath)
- end)
- luadev2._func_table['testinclude.lua']()
Add Comment
Please, Sign In to add comment