summary refs log tree commit diff stats
path: root/examples/luaex.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2010-02-28 23:04:18 +0100
committerAndreas Rumpf <rumpf_a@web.de>2010-02-28 23:04:18 +0100
commitb559285b78bfa76533d25e77f3f61cab2427bb03 (patch)
treef418f489f307f825a934cea878921f65c0114561 /examples/luaex.nim
parentddb718548278290a1c25c1bbfba82bc5581457a7 (diff)
downloadNim-b559285b78bfa76533d25e77f3f61cab2427bb03.tar.gz
examples/lib use the new wrappers
Diffstat (limited to 'examples/luaex.nim')
-rwxr-xr-xexamples/luaex.nim8
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)