MCPcopy Create free account
hub / github.com/apache/trafficserver / ts_lua_inject_hook_variables

Function ts_lua_inject_hook_variables

plugins/lua/ts_lua_hook.cc:75–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75static void
76ts_lua_inject_hook_variables(lua_State *L)
77{
78 size_t i;
79
80 for (i = 0; i < sizeof(ts_lua_hook_id_string) / sizeof(char *); i++) {
81 lua_pushinteger(L, (lua_Integer)i);
82 lua_setglobal(L, ts_lua_hook_id_string[i]);
83 }
84}
85
86static int
87ts_lua_add_hook(lua_State *L)

Callers 1

ts_lua_inject_hook_apiFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected