MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / lua_calloc

Function lua_calloc

src/Chain/libraries/glua/lstate.cpp:429–436  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

427}
428
429void *lua_calloc(lua_State *L, size_t element_count, size_t element_size)
430{
431 void *p = lua_malloc(L, element_count * element_size);
432 if (nullptr == p)
433 return nullptr;
434 memset(p, 0, element_count * element_size);
435 return p;
436}
437
438void lua_free(lua_State *L, void *address)
439{

Callers 1

Calls 1

lua_mallocFunction · 0.85

Tested by

no test coverage detected