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

Function ts_lua_new_state

plugins/lua/ts_lua_util.cc:165–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165lua_State *
166ts_lua_new_state()
167{
168 lua_State *L;
169
170 L = luaL_newstate();
171
172 if (L == nullptr) {
173 return nullptr;
174 }
175
176 luaL_openlibs(L);
177
178 ts_lua_init_registry(L);
179
180 ts_lua_init_globals(L);
181
182 return L;
183}
184
185ts_lua_ctx_stats *
186ts_lua_create_ctx_stats()

Callers 1

ts_lua_create_vmFunction · 0.85

Calls 1

ts_lua_init_globalsFunction · 0.85

Tested by

no test coverage detected