Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save elliottslaughter/878bd01be7aaf3fc8a1c3f59ed6ad3fe to your computer and use it in GitHub Desktop.
Save elliottslaughter/878bd01be7aaf3fc8a1c3f59ed6ad3fe to your computer and use it in GitHub Desktop.
Lua APIs used in Terra
$ rg --no-filename --only-matching 'lua[A-Za-z0-9_]+[(]' src/ | sort -u
luaK_exp2nextreg(
luaK_exp2val(
luaL_checkint(
luaL_checknumber(
luaL_checkstack(
luaL_checkstring(
luaL_error(
luaL_loadbuffer(
luaL_loadfile(
luaL_newstate(
luaL_openlibs(
luaL_ref(
luaL_unref(
luaO_hexavalue(
luaP_assert(
luaP_longassert(
luaP_str2number(
luaP_strx2number(
luaS_cstringf(
luaS_new(
luaS_newliteral(
luaS_newlstr(
luaS_stringf(
luaS_vstringf(
luaX_getoutput(
luaX_globalgetfield(
luaX_globalgettable(
luaX_globalpush(
luaX_globalset(
luaX_init(
luaX_insertbeforecurrenttoken(
luaX_lookahead(
luaX_newstring(
luaX_next(
luaX_patchbegin(
luaX_patchend(
luaX_poptstringtable(
luaX_pushtstringtable(
luaX_reporterror(
luaX_saveoutput(
luaX_setinput(
luaX_syntaxerror(
luaX_token2rawstr(
luaX_token2str(
luaY_parser(
luaZ_buffer(
luaZ_bufflen(
luaZ_fill(
luaZ_init(
luaZ_initbuffer(
luaZ_resetbuffer(
luaZ_resizebuffer(
luaZ_sizebuffer(
lua_assert(
lua_atpanic(
lua_call(
lua_checkstack(
lua_close(
lua_concat(
lua_createtable(
lua_equal(
lua_error(
lua_freeline(
lua_gc(
lua_getfield(
lua_getglobal(
lua_getmetatable(
lua_gettable(
lua_gettop(
lua_insert(
lua_isfunction(
lua_isnil(
lua_isnumber(
lua_isstring(
lua_istable(
lua_load(
lua_newtable(
lua_newuserdata(
lua_next(
lua_objlen(
lua_operator(
lua_pcall(
lua_pop(
lua_pushboolean(
lua_pushcclosure(
lua_pushcfunction(
lua_pushfstring(
lua_pushinteger(
lua_pushlightuserdata(
lua_pushliteral(
lua_pushlstring(
lua_pushnil(
lua_pushnumber(
lua_pushstring(
lua_pushvalue(
lua_rawget(
lua_rawgeti(
lua_rawset(
lua_rawseti(
lua_readline(
lua_remove(
lua_replace(
lua_saveline(
lua_setfield(
lua_setglobal(
lua_sethook(
lua_setmetatable(
lua_settable(
lua_settop(
lua_strlen(
lua_toboolean(
lua_tolstring(
lua_tonumber(
lua_topointer(
lua_tostring(
lua_touserdata(
lua_type(
lua_upvalueindex(
luaapi(
luaenv(
luaexpr(
luaexpression(
luaload(
lualoadfile(
lualoadstring(
luaobject(
luaopen_terra(
luastats(
luatedparam(
luateparameterlist(
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment