MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / luaT_init

Function luaT_init

Source/Misc/lua/src/lua.c:9858–9871  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9856
9857
9858void luaT_init (lua_State *L) {
9859static const char *const luaT_eventname[] = { /* ORDER TM */
9860"__index", "__newindex",
9861"__gc", "__mode", "__eq",
9862"__add", "__sub", "__mul", "__div", "__mod",
9863"__pow", "__unm", "__len", "__lt", "__le",
9864"__concat", "__call"
9865};
9866int i;
9867for (i=0; i<TM_N; i++) {
9868G(L)->tmname[i] = luaS_new(L, luaT_eventname[i]);
9869luaS_fix(G(L)->tmname[i]); /* never collect these names */
9870}
9871}
9872
9873
9874/*

Callers 1

f_luaopenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected