第9行创建了一个Lua状态。
Lua is a small scripting language.
Lua是一种小型脚本语言。
Indeed, tables are the only data structure in Lua.
实际上,表是Lua中惟一的数据结构。
Get the Lua 5.0.2 or Lua 5.1 source code to build Lua from scratch.
下载Lua5.0.2或Lua 5.1源代码,从头开始编译lua。
Beware, however, that Lua can only shrink a table when rehashing it.
注意,无论如何,Lua只能在再散列时收缩表。
You use lua_pushcfunction() to convert a C function pointer into an internal Lua object.
可以使用 lua_pushcfunction()将一个C函数指针转换成一个内部Lua对象。
With Lua, the development cycle is more akin to "Code, Build, Run, Script, Script, Script...".
使用Lua,开发周期就非常类似于“编码、编译、运行、编写脚本、编写脚本、编写脚本…”。
The lua_pcall() function takes three arguments other than the Lua state it is to operate on.
除了要在其上面进行操作的Lua状态外,lua_pcall()函数还带有3 个参数。
The lua_pcall() function takes three arguments other than the Lua state it is to operate on.
除了要在其上面进行操作的Lua状态外,lua_pcall()函数还带有3 个参数。
应用推荐