| 1416 | |
| 1417 | |
| 1418 | LUA_API lua_Alloc lua_getallocf (lua_State *L, void **ud) { |
| 1419 | lua_Alloc f; |
| 1420 | lua_lock(L); |
| 1421 | if (ud) *ud = G(L)->ud; |
| 1422 | f = G(L)->frealloc; |
| 1423 | lua_unlock(L); |
| 1424 | return f; |
| 1425 | } |
| 1426 | |
| 1427 | |
| 1428 | LUA_API void lua_setallocf (lua_State *L, lua_Alloc f, void *ud) { |
no outgoing calls
no test coverage detected