# 索引
## Lua 函数
### [基础](manual.html#6.1)
+ [_G](manual.html#_G)
+ [_VERSION](manual.html#_VERSION)
+ [assert](manual.html#assert)
+ [collectgarbage](manual.html#collectgarbage)
+ [dofile](manual.html#dofile)
+ [error](manual.html#error)
+ [getmetatable](manual.html#getmetatable)
+ [ipairs](manual.html#ipairs)
+ [load](manual.html#load)
+ [loadfile](manual.html#loadfile)
+ [next](manual.html#next)
+ [pairs](manual.html#pairs)
+ [pcall](manual.html#pcall)
+ [print](manual.html#print)
+ [rawequal](manual.html#rawequal)
+ [rawget](manual.html#rawget)
+ [rawlen](manual.html#rawlen)
+ [rawset](manual.html#rawset)
+ [require](manual.html#require)
+ [select](manual.html#select)
+ [setmetatable](manual.html#setmetatable)
+ [tonumber](manual.html#tonumber)
+ [tostring](manual.html#tostring)
+ [type](manual.html#type)
+ [xpcall](manual.html#xpcall)
### [协程](manual.html#6.2)
+ [coroutine.create](manual.html#coroutine.create)
+ [coroutine.isyieldable](manual.html#coroutine.isyieldable)
+ [coroutine.resume](manual.html#coroutine.resume)
+ [coroutine.running](manual.html#coroutine.running)
+ [coroutine.status](manual.html#coroutine.status)
+ [coroutine.wrap](manual.html#coroutine.wrap)
+ [coroutine.yield](manual.html#coroutine.yield)
### [调试](manual.html#6.10)
+ [debug.debug](manual.html#debug.debug)
+ [debug.gethook](manual.html#debug.gethook)
+ [debug.getinfo](manual.html#debug.getinfo)
+ [debug.getlocal](manual.html#debug.getlocal)
+ [debug.getmetatable](manual.html#debug.getmetatable)
+ [debug.getregistry](manual.html#debug.getregistry)
+ [debug.getupvalue](manual.html#debug.getupvalue)
+ [debug.getuservalue](manual.html#debug.getuservalue)
+ [debug.sethook](manual.html#debug.sethook)
+ [debug.setlocal](manual.html#debug.setlocal)
+ [debug.setmetatable](manual.html#debug.setmetatable)
+ [debug.setupvalue](manual.html#debug.setupvalue)
+ [debug.setuservalue](manual.html#debug.setuservalue)
+ [debug.traceback](manual.html#debug.traceback)
+ [debug.upvalueid](manual.html#debug.upvalueid)
+ [debug.upvaluejoin](manual.html#debug.upvaluejoin)
### [输入输出](manual.html#6.8)
+ [io.close](manual.html#io.close)
+ [io.flush](manual.html#io.flush)
+ [io.input](manual.html#io.input)
+ [io.lines](manual.html#io.lines)
+ [io.open](manual.html#io.open)
+ [io.output](manual.html#io.output)
+ [io.popen](manual.html#io.popen)
+ [io.read](manual.html#io.read)
+ [io.stderr](manual.html#io.stderr)
+ [io.stdin](manual.html#io.stdin)
+ [io.stdout](manual.html#io.stdout)
+ [io.tmpfile](manual.html#io.tmpfile)
+ [io.type](manual.html#io.type)
+ [io.write](manual.html#io.write)
+ [file:close](manual.html#file:close)
+ [file:flush](manual.html#file:flush)
+ [file:lines](manual.html#file:lines)
+ [file:read](manual.html#file:read)
+ [file:seek](manual.html#file:seek)
+ [file:setvbuf](manual.html#file:setvbuf)
+ [file:write](manual.html#file:write)
### [数学](manual.html#6.7)
+ [math.abs](manual.html#math.abs)
+ [math.acos](manual.html#math.acos)
+ [math.asin](manual.html#math.asin)
+ [math.atan](manual.html#math.atan)
+ [math.ceil](manual.html#math.ceil)
+ [math.cos](manual.html#math.cos)
+ [math.deg](manual.html#math.deg)
+ [math.exp](manual.html#math.exp)
+ [math.floor](manual.html#math.floor)
+ [math.fmod](manual.html#math.fmod)
+ [math.huge](manual.html#math.huge)
+ [math.log](manual.html#math.log)
+ [math.max](manual.html#math.max)
+ [math.maxinteger](manual.html#math.maxinteger)
+ [math.min](manual.html#math.min)
+ [math.mininteger](manual.html#math.mininteger)
+ [math.modf](manual.html#math.modf)
+ [math.pi](manual.html#math.pi)
+ [math.rad](manual.html#math.rad)
+ [math.random](manual.html#math.random)
+ [math.randomseed](manual.html#math.randomseed)
+ [math.sin](manual.html#math.sin)
+ [math.sqrt](manual.html#math.sqrt)
+ [math.tan](manual.html#math.tan)
+ [math.tointeger](manual.html#math.tointeger)
+ [math.type](manual.html#math.type)
+ [math.ult](manual.html#math.ult)
### [操作系统](manual.html#6.9)
+ [os.clock](manual.html#os.clock)
+ [os.date](manual.html#os.date)
+ [os.difftime](manual.html#os.difftime)
+ [os.execute](manual.html#os.execute)
+ [os.exit](manual.html#os.exit)
+ [os.getenv](manual.html#os.getenv)
+ [os.remove](manual.html#os.remove)
+ [os.rename](manual.html#os.rename)
+ [os.setlocale](manual.html#os.setlocale)
+ [os.time](manual.html#os.time)
+ [os.tmpname](manual.html#os.tmpname)
### [包](manual.html#6.3)
+ [package.config](manual.html#package.config)
+ [package.cpath](manual.html#package.cpath)
+ [package.loaded](manual.html#package.loaded)
+ [package.loadlib](manual.html#package.loadlib)
+ [package.path](manual.html#package.path)
+ [package.preload](manual.html#package.preload)
+ [package.searchers](manual.html#package.searchers)
+ [package.searchpath](manual.html#package.searchpath)
### [字符串](manual.html#6.4)
+ [string.byte](manual.html#string.byte)
+ [string.char](manual.html#string.char)
+ [string.dump](manual.html#string.dump)
+ [string.find](manual.html#string.find)
+ [string.format](manual.html#string.format)
+ [string.gmatch](manual.html#string.gmatch)
+ [string.gsub](manual.html#string.gsub)
+ [string.len](manual.html#string.len)
+ [string.lower](manual.html#string.lower)
+ [string.match](manual.html#string.match)
+ [string.pack](manual.html#string.pack)
+ [string.packsize](manual.html#string.packsize)
+ [string.rep](manual.html#string.rep)
+ [string.reverse](manual.html#string.reverse)
+ [string.sub](manual.html#string.sub)
+ [string.unpack](manual.html#string.unpack)
+ [string.upper](manual.html#string.upper)
### [表](manual.html#6.6)
+ [table.concat](manual.html#table.concat)
+ [table.insert](manual.html#table.insert)
+ [table.move](manual.html#table.move)
+ [table.pack](manual.html#table.pack)
+ [table.remove](manual.html#table.remove)
+ [table.sort](manual.html#table.sort)
+ [table.unpack](manual.html#table.unpack)
### [utf8](manual.html#6.5)
+ [utf8.char](manual.html#utf8.char)
+ [utf8.charpattern](manual.html#utf8.charpattern)
+ [utf8.codepoint](manual.html#utf8.codepoint)
+ [utf8.codes](manual.html#utf8.codes)
+ [utf8.len](manual.html#utf8.len)
+ [utf8.offset](manual.html#utf8.offset)
## 环境变量
+ [LUA_CPATH](manual.html#LUA_CPATH)
+ [LUA_CPATH_5_3](manual.html#LUA_CPATH_5_3)
+ [LUA_INIT](manual.html#LUA_INIT)
+ [LUA_INIT_5_3](manual.html#LUA_INIT_5_3)
+ [LUA_PATH](manual.html#LUA_PATH)
+ [LUA_PATH_5_3](manual.html#LUA_PATH_5_3)
## C API
+ [lua_Alloc](manual.html#lua_Alloc)
+ [lua_CFunction](manual.html#lua_CFunction)
+ [lua_Debug](manual.html#lua_Debug)
+ [lua_Hook](manual.html#lua_Hook)
+ [lua_Integer](manual.html#lua_Integer)
+ [lua_KContext](manual.html#lua_KContext)
+ [lua_KFunction](manual.html#lua_KFunction)
+ [lua_Number](manual.html#lua_Number)
+ [lua_Reader](manual.html#lua_Reader)
+ [lua_State](manual.html#lua_State)
+ [lua_Unsigned](manual.html#lua_Unsigned)
+ [lua_Writer](manual.html#lua_Writer)
+ [lua_absindex](manual.html#lua_absindex)
+ [lua_arith](manual.html#lua_arith)
+ [lua_atpanic](manual.html#lua_atpanic)
+ [lua_call](manual.html#lua_call)
+ [lua_callk](manual.html#lua_callk)
+ [lua_checkstack](manual.html#lua_checkstack)
+ [lua_close](manual.html#lua_close)
+ [lua_compare](manual.html#lua_compare)
+ [lua_concat](manual.html#lua_concat)
+ [lua_copy](manual.html#lua_copy)
+ [lua_createtable](manual.html#lua_createtable)
+ [lua_dump](manual.html#lua_dump)
+ [lua_error](manual.html#lua_error)
+ [lua_gc](manual.html#lua_gc)
+ [lua_getallocf](manual.html#lua_getallocf)
+ [lua_getextraspace](manual.html#lua_getextraspace)
+ [lua_getfield](manual.html#lua_getfield)
+ [lua_getglobal](manual.html#lua_getglobal)
+ [lua_gethook](manual.html#lua_gethook)
+ [lua_gethookcount](manual.html#lua_gethookcount)
+ [lua_gethookmask](manual.html#lua_gethookmask)
+ [lua_geti](manual.html#lua_geti)
+ [lua_getinfo](manual.html#lua_getinfo)
+ [lua_getlocal](manual.html#lua_getlocal)
+ [lua_getmetatable](manual.html#lua_getmetatable)
+ [lua_getstack](manual.html#lua_getstack)
+ [lua_gettable](manual.html#lua_gettable)
+ [lua_gettop](manual.html#lua_gettop)
+ [lua_getupvalue](manual.html#lua_getupvalue)
+ [lua_getuservalue](manual.html#lua_getuservalue)
+ [lua_insert](manual.html#lua_insert)
+ [lua_isboolean](manual.html#lua_isboolean)
+ [lua_iscfunction](manual.html#lua_iscfunction)
+ [lua_isfunction](manual.html#lua_isfunction)
+ [lua_isinteger](manual.html#lua_isinteger)
+ [lua_islightuserdata](manual.html#lua_islightuserdata)
+ [lua_isnil](manual.html#lua_isnil)
+ [lua_isnone](manual.html#lua_isnone)
+ [lua_isnoneornil](manual.html#lua_isnoneornil)
+ [lua_isnumber](manual.html#lua_isnumber)
+ [lua_isstring](manual.html#lua_isstring)
+ [lua_istable](manual.html#lua_istable)
+ [lua_isthread](manual.html#lua_isthread)
+ [lua_isuserdata](manual.html#lua_isuserdata)
+ [lua_isyieldable](manual.html#lua_isyieldable)
+ [lua_len](manual.html#lua_len)
+ [lua_load](manual.html#lua_load)
+ [lua_newstate](manual.html#lua_newstate)
+ [lua_newtable](manual.html#lua_newtable)
+ [lua_newthread](manual.html#lua_newthread)
+ [lua_newuserdata](manual.html#lua_newuserdata)
+ [lua_next](manual.html#lua_next)
+ [lua_numbertointeger](manual.html#lua_numbertointeger)
+ [lua_pcall](manual.html#lua_pcall)
+ [lua_pcallk](manual.html#lua_pcallk)
+ [lua_pop](manual.html#lua_pop)
+ [lua_pushboolean](manual.html#lua_pushboolean)
+ [lua_pushcclosure](manual.html#lua_pushcclosure)
+ [lua_pushcfunction](manual.html#lua_pushcfunction)
+ [lua_pushfstring](manual.html#lua_pushfstring)
+ [lua_pushglobaltable](manual.html#lua_pushglobaltable)
+ [lua_pushinteger](manual.html#lua_pushinteger)
+ [lua_pushlightuserdata](manual.html#lua_pushlightuserdata)
+ [lua_pushliteral](manual.html#lua_pushliteral)
+ [lua_pushlstring](manual.html#lua_pushlstring)
+ [lua_pushnil](manual.html#lua_pushnil)
+ [lua_pushnumber](manual.html#lua_pushnumber)
+ [lua_pushstring](manual.html#lua_pushstring)
+ [lua_pushthread](manual.html#lua_pushthread)
+ [lua_pushvalue](manual.html#lua_pushvalue)
+ [lua_pushvfstring](manual.html#lua_pushvfstring)
+ [lua_rawequal](manual.html#lua_rawequal)
+ [lua_rawget](manual.html#lua_rawget)
+ [lua_rawgeti](manual.html#lua_rawgeti)
+ [lua_rawgetp](manual.html#lua_rawgetp)
+ [lua_rawlen](manual.html#lua_rawlen)
+ [lua_rawset](manual.html#lua_rawset)
+ [lua_rawseti](manual.html#lua_rawseti)
+ [lua_rawsetp](manual.html#lua_rawsetp)
+ [lua_register](manual.html#lua_register)
+ [lua_remove](manual.html#lua_remove)
+ [lua_replace](manual.html#lua_replace)
+ [lua_resume](manual.html#lua_resume)
+ [lua_rotate](manual.html#lua_rotate)
+ [lua_setallocf](manual.html#lua_setallocf)
+ [lua_setfield](manual.html#lua_setfield)
+ [lua_setglobal](manual.html#lua_setglobal)
+ [lua_sethook](manual.html#lua_sethook)
+ [lua_seti](manual.html#lua_seti)
+ [lua_setlocal](manual.html#lua_setlocal)
+ [lua_setmetatable](manual.html#lua_setmetatable)
+ [lua_settable](manual.html#lua_settable)
+ [lua_settop](manual.html#lua_settop)
+ [lua_setupvalue](manual.html#lua_setupvalue)
+ [lua_setuservalue](manual.html#lua_setuservalue)
+ [lua_status](manual.html#lua_status)
+ [lua_stringtonumber](manual.html#lua_stringtonumber)
+ [lua_toboolean](manual.html#lua_toboolean)
+ [lua_tocfunction](manual.html#lua_tocfunction)
+ [lua_tointeger](manual.html#lua_tointeger)
+ [lua_tointegerx](manual.html#lua_tointegerx)
+ [lua_tolstring](manual.html#lua_tolstring)
+ [lua_tonumber](manual.html#lua_tonumber)
+ [lua_tonumberx](manual.html#lua_tonumberx)
+ [lua_topointer](manual.html#lua_topointer)
+ [lua_tostring](manual.html#lua_tostring)
+ [lua_tothread](manual.html#lua_tothread)
+ [lua_touserdata](manual.html#lua_touserdata)
+ [lua_type](manual.html#lua_type)
+ [lua_typename](manual.html#lua_typename)
+ [lua_upvalueid](manual.html#lua_upvalueid)
+ [lua_upvalueindex](manual.html#lua_upvalueindex)
+ [lua_upvaluejoin](manual.html#lua_upvaluejoin)
+ [lua_version](manual.html#lua_version)
+ [lua_xmove](manual.html#lua_xmove)
+ [lua_yield](manual.html#lua_yield)
+ [lua_yieldk](manual.html#lua_yieldk)
## 辅助库
+ [luaL_Buffer](manual.html#luaL_Buffer)
+ [luaL_Reg](manual.html#luaL_Reg)
+ [luaL_Stream](manual.html#luaL_Stream)
+ [luaL_addchar](manual.html#luaL_addchar)
+ [luaL_addlstring](manual.html#luaL_addlstring)
+ [luaL_addsize](manual.html#luaL_addsize)
+ [luaL_addstring](manual.html#luaL_addstring)
+ [luaL_addvalue](manual.html#luaL_addvalue)
+ [luaL_argcheck](manual.html#luaL_argcheck)
+ [luaL_argerror](manual.html#luaL_argerror)
+ [luaL_buffinit](manual.html#luaL_buffinit)
+ [luaL_buffinitsize](manual.html#luaL_buffinitsize)
+ [luaL_callmeta](manual.html#luaL_callmeta)
+ [luaL_checkany](manual.html#luaL_checkany)
+ [luaL_checkinteger](manual.html#luaL_checkinteger)
+ [luaL_checklstring](manual.html#luaL_checklstring)
+ [luaL_checknumber](manual.html#luaL_checknumber)
+ [luaL_checkoption](manual.html#luaL_checkoption)
+ [luaL_checkstack](manual.html#luaL_checkstack)
+ [luaL_checkstring](manual.html#luaL_checkstring)
+ [luaL_checktype](manual.html#luaL_checktype)
+ [luaL_checkudata](manual.html#luaL_checkudata)
+ [luaL_checkversion](manual.html#luaL_checkversion)
+ [luaL_dofile](manual.html#luaL_dofile)
+ [luaL_dostring](manual.html#luaL_dostring)
+ [luaL_error](manual.html#luaL_error)
+ [luaL_execresult](manual.html#luaL_execresult)
+ [luaL_fileresult](manual.html#luaL_fileresult)
+ [luaL_getmetafield](manual.html#luaL_getmetafield)
+ [luaL_getmetatable](manual.html#luaL_getmetatable)
+ [luaL_getsubtable](manual.html#luaL_getsubtable)
+ [luaL_gsub](manual.html#luaL_gsub)
+ [luaL_len](manual.html#luaL_len)
+ [luaL_loadbuffer](manual.html#luaL_loadbuffer)
+ [luaL_loadbufferx](manual.html#luaL_loadbufferx)
+ [luaL_loadfile](manual.html#luaL_loadfile)
+ [luaL_loadfilex](manual.html#luaL_loadfilex)
+ [luaL_loadstring](manual.html#luaL_loadstring)
+ [luaL_newlib](manual.html#luaL_newlib)
+ [luaL_newlibtable](manual.html#luaL_newlibtable)
+ [luaL_newmetatable](manual.html#luaL_newmetatable)
+ [luaL_newstate](manual.html#luaL_newstate)
+ [luaL_openlibs](manual.html#luaL_openlibs)
+ [luaL_optinteger](manual.html#luaL_optinteger)
+ [luaL_optlstring](manual.html#luaL_optlstring)
+ [luaL_optnumber](manual.html#luaL_optnumber)
+ [luaL_optstring](manual.html#luaL_optstring)
+ [luaL_prepbuffer](manual.html#luaL_prepbuffer)
+ [luaL_prepbuffsize](manual.html#luaL_prepbuffsize)
+ [luaL_pushresult](manual.html#luaL_pushresult)
+ [luaL_pushresultsize](manual.html#luaL_pushresultsize)
+ [luaL_ref](manual.html#luaL_ref)
+ [luaL_requiref](manual.html#luaL_requiref)
+ [luaL_setfuncs](manual.html#luaL_setfuncs)
+ [luaL_setmetatable](manual.html#luaL_setmetatable)
+ [luaL_testudata](manual.html#luaL_testudata)
+ [luaL_tolstring](manual.html#luaL_tolstring)
+ [luaL_traceback](manual.html#luaL_traceback)
+ [luaL_typename](manual.html#luaL_typename)
+ [luaL_unref](manual.html#luaL_unref)
+ [luaL_where](manual.html#luaL_where)
## 标准库
+ [luaopen_base](manual.html#luaopen_base)
+ [luaopen_coroutine](manual.html#luaopen_coroutine)
+ [luaopen_debug](manual.html#luaopen_debug)
+ [luaopen_io](manual.html#luaopen_io)
+ [luaopen_math](manual.html#luaopen_math)
+ [luaopen_os](manual.html#luaopen_os)
+ [luaopen_package](manual.html#luaopen_package)
+ [luaopen_string](manual.html#luaopen_string)
+ [luaopen_table](manual.html#luaopen_table)
+ [luaopen_utf8](manual.html#luaopen_utf8)
## 常量
+ [LUA_ERRERR](manual.html#LUA_ERRERR)
+ [LUA_ERRFILE](manual.html#LUA_ERRFILE)
+ [LUA_ERRGCMM](manual.html#LUA_ERRGCMM)
+ [LUA_ERRMEM](manual.html#LUA_ERRMEM)
+ [LUA_ERRRUN](manual.html#LUA_ERRRUN)
+ [LUA_ERRSYNTAX](manual.html#LUA_ERRSYNTAX)
+ [LUA_HOOKCALL](manual.html#LUA_HOOKCALL)
+ [LUA_HOOKCOUNT](manual.html#LUA_HOOKCOUNT)
+ [LUA_HOOKLINE](manual.html#LUA_HOOKLINE)
+ [LUA_HOOKRET](manual.html#LUA_HOOKRET)
+ [LUA_HOOKTAILCALL](manual.html#LUA_HOOKTAILCALL)
+ [LUA_MASKCALL](manual.html#LUA_MASKCALL)
+ [LUA_MASKCOUNT](manual.html#LUA_MASKCOUNT)
+ [LUA_MASKLINE](manual.html#LUA_MASKLINE)
+ [LUA_MASKRET](manual.html#LUA_MASKRET)
+ [LUA_MAXINTEGER](manual.html#LUA_MAXINTEGER)
+ [LUA_MININTEGER](manual.html#LUA_MININTEGER)
+ [LUA_MINSTACK](manual.html#LUA_MINSTACK)
+ [LUA_MULTRET](manual.html#LUA_MULTRET)
+ [LUA_NOREF](manual.html#LUA_NOREF)
+ [LUA_OK](manual.html#LUA_OK)
+ [LUA_OPADD](manual.html#LUA_OPADD)
+ [LUA_OPBAND](manual.html#LUA_OPBAND)
+ [LUA_OPBNOT](manual.html#LUA_OPBNOT)
+ [LUA_OPBOR](manual.html#LUA_OPBOR)
+ [LUA_OPBXOR](manual.html#LUA_OPBXOR)
+ [LUA_OPDIV](manual.html#LUA_OPDIV)
+ [LUA_OPEQ](manual.html#LUA_OPEQ)
+ [LUA_OPIDIV](manual.html#LUA_OPIDIV)
+ [LUA_OPLE](manual.html#LUA_OPLE)
+ [LUA_OPLT](manual.html#LUA_OPLT)
+ [LUA_OPMOD](manual.html#LUA_OPMOD)
+ [LUA_OPMUL](manual.html#LUA_OPMUL)
+ [LUA_OPPOW](manual.html#LUA_OPPOW)
+ [LUA_OPSHL](manual.html#LUA_OPSHL)
+ [LUA_OPSHR](manual.html#LUA_OPSHR)
+ [LUA_OPSUB](manual.html#LUA_OPSUB)
+ [LUA_OPUNM](manual.html#LUA_OPUNM)
+ [LUA_REFNIL](manual.html#LUA_REFNIL)
+ [LUA_REGISTRYINDEX](manual.html#LUA_REGISTRYINDEX)
+ [LUA_RIDX_GLOBALS](manual.html#LUA_RIDX_GLOBALS)
+ [LUA_RIDX_MAINTHREAD](manual.html#LUA_RIDX_MAINTHREAD)
+ [LUA_TBOOLEAN](manual.html#LUA_TBOOLEAN)
+ [LUA_TFUNCTION](manual.html#LUA_TFUNCTION)
+ [LUA_TLIGHTUSERDATA](manual.html#LUA_TLIGHTUSERDATA)
+ [LUA_TNIL](manual.html#LUA_TNIL)
+ [LUA_TNONE](manual.html#LUA_TNONE)
+ [LUA_TNUMBER](manual.html#LUA_TNUMBER)
+ [LUA_TSTRING](manual.html#LUA_TSTRING)
+ [LUA_TTABLE](manual.html#LUA_TTABLE)
+ [LUA_TTHREAD](manual.html#LUA_TTHREAD)
+ [LUA_TUSERDATA](manual.html#LUA_TUSERDATA)
+ [LUA_USE_APICHECK](manual.html#LUA_USE_APICHECK)
+ [LUA_YIELD](manual.html#LUA_YIELD)
+ [LUAL_BUFFERSIZE](manual.html#LUAL_BUFFERSIZE)