From 6f176096b8f3a2088c01d67a36e4b67750ec179e Mon Sep 17 00:00:00 2001 From: ame Date: Wed, 27 May 2026 06:00:43 -0500 Subject: .table updates, .dup & .equal --- src/lua.c | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'src/lua.c') diff --git a/src/lua.c b/src/lua.c index 3accdb4..f60fba5 100644 --- a/src/lua.c +++ b/src/lua.c @@ -13,18 +13,6 @@ int luaI_nothing(lua_State* L){ return 0; } -void* __malloc_(size_t N){ - printf("hi"); - malloc_count++; - return (malloc)(N); -} - -void __free_(void* p){ - malloc_count--; - printf("%i\n",malloc_count); - return (free)(p); -} - int luaI_iserror(lua_State* L){ if(lua_gettop(L) < 3) return 0; return lua_type(L, -3) == LUA_TNIL && @@ -172,10 +160,6 @@ int writer(lua_State *L, const void* p, size_t sz, void* ud){ return 0; } -enum table_cache { - CACHE_HIT, CACHE_MISS -}; - enum table_cache table_cache(lua_State* L, char* key, int index){ lua_getfield(L, LUA_REGISTRYINDEX, key); if(lua_type(L, -1) == LUA_TNIL){ -- cgit v1.2.3