version0.7.10

This commit is contained in:
Andreas Rumpf 2009-06-08 08:13:09 +02:00
commit 36818817bd
14 changed files with 1011 additions and 0 deletions

15
examples/luaex.nim Normal file
View file

@ -0,0 +1,15 @@
# Embedds Lua into a Nimrod application
import
lua, lualib, lauxlib
const
code = """
print 'hi'
"""
var L = luaL_newstate()
luaL_openlibs(L)
discard luaL_loadbuffer(L, code, code.len, "line")
discard lua_pcall(L, 0, 0, 0)