examples/lib use the new wrappers
This commit is contained in:
parent
ddb7185482
commit
b559285b78
133 changed files with 17038 additions and 151734 deletions
|
|
@ -8,8 +8,8 @@ const
|
|||
print 'hi'
|
||||
"""
|
||||
|
||||
var L = luaL_newstate()
|
||||
luaL_openlibs(L)
|
||||
discard luaL_loadbuffer(L, code, code.len, "line")
|
||||
discard lua_pcall(L, 0, 0, 0)
|
||||
var L = newstate()
|
||||
openlibs(L)
|
||||
discard loadbuffer(L, code, code.len, "line")
|
||||
discard pcall(L, 0, 0, 0)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue