diff options
| author | ame <[email protected]> | 2026-05-27 06:00:43 -0500 |
|---|---|---|
| committer | ame <[email protected]> | 2026-05-27 06:00:43 -0500 |
| commit | 6f176096b8f3a2088c01d67a36e4b67750ec179e (patch) | |
| tree | 78a195e1b743f56380e164177c5b1393126ed7d7 /src/lua.c | |
| parent | 0addb6ba5b45168b7abe2ff0db6ddcfff20d1865 (diff) | |
.table updates, .dup & .equal
Diffstat (limited to 'src/lua.c')
| -rw-r--r-- | src/lua.c | 16 |
1 files changed, 0 insertions, 16 deletions
@@ -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){
|
