MCPcopy Create free account
hub / github.com/F-Stack/f-stack / luaT_init

Function luaT_init

freebsd/contrib/openzfs/module/lua/ltm.c:31–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29
30
31void luaT_init (lua_State *L) {
32 static const char *const luaT_eventname[] = { /* ORDER TM */
33 "__index", "__newindex",
34 "__gc", "__mode", "__len", "__eq",
35 "__add", "__sub", "__mul", "__div", "__mod",
36 "__pow", "__unm", "__lt", "__le",
37 "__concat", "__call"
38 };
39 int i;
40 for (i=0; i<TM_N; i++) {
41 G(L)->tmname[i] = luaS_new(L, luaT_eventname[i]);
42 luaS_fix(G(L)->tmname[i]); /* never collect these names */
43 }
44}
45
46
47/*

Callers 1

f_luaopenFunction · 0.70

Calls 1

luaS_newFunction · 0.85

Tested by

no test coverage detected