aboutsummaryrefslogtreecommitdiff
path: root/src/lua.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua.c')
-rw-r--r--src/lua.c16
1 files changed, 0 insertions, 16 deletions
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){