diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2010-02-28 23:04:18 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2010-02-28 23:04:18 +0100 |
commit | b559285b78bfa76533d25e77f3f61cab2427bb03 (patch) | |
tree | f418f489f307f825a934cea878921f65c0114561 /examples/luaex.nim | |
parent | ddb718548278290a1c25c1bbfba82bc5581457a7 (diff) | |
download | Nim-b559285b78bfa76533d25e77f3f61cab2427bb03.tar.gz |
examples/lib use the new wrappers
Diffstat (limited to 'examples/luaex.nim')
-rwxr-xr-x | examples/luaex.nim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/luaex.nim b/examples/luaex.nim index a71f0fb05..7628ddd12 100755 --- a/examples/luaex.nim +++ b/examples/luaex.nim @@ -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) |