Skip to content

Commit

Permalink
Disable the Lua stackguard debug macros for now, since they are very …
Browse files Browse the repository at this point in the history
…noisy, but we'll keep them around for the future, since they are very useful when debugging a stack overflow
  • Loading branch information
cmsj committed Apr 10, 2018
1 parent 300d5a6 commit fca6631
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions LuaSkin/LuaSkin/Skin.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,17 @@
#import <assert.h>

// Defines for Lua stack guard macros
/*
#ifdef DEBUG
# define _lua_stackguard_entry(L) int __lua_stackguard_entry=lua_gettop(L); NSLog(@"lua stack is %d at %s:%s:%d", __lua_stackguard_entry, __FILE__, __FUNCTION__, __LINE__);
# define _lua_stackguard_exit(L) NSLog(@"lua stack is %d at %s:ss%s:%d", lua_gettop(L), __FILE__, __FUNCTION__, __LINE__); assert(__lua_stackguard_entry == lua_gettop(L));
#else
*/
# define _lua_stackguard_entry(L) int __lua_stackguard_entry=lua_gettop(L);
# define _lua_stackguard_exit(L) assert(__lua_stackguard_entry == lua_gettop(L));
/*
#endif
*/

// Define some bits for masking operations in the argument checker
/*!
Expand Down

0 comments on commit fca6631

Please sign in to comment.