Displaying 1 result from an estimated 1 matches for "undebug_protect".
Did you mean:
  debug_protect
  
2006 May 17
1
protect/unprotect howto in C code
...Can someone give a hint (or some documents) on a way to simplify debugging 
such problem in addition to using gdb, please? I thought about temporarily 
defining macros such as 
#define DEBUG_Protect(x)  PROTECT(x); fprintf(stderr, "Protecting in %s, l: 
%d\n", __FILE__, __LINE__)
#define UNDEBUG_Protect(x) fprintf(stderr, "Unprotecting %d  in %s, l:, %d  
\n", x , __FILE__, __LINE__); UNPROTECT(x);
and then replace all calls temporarily in the package source. But there must 
be a better way... 
Thank you very much
(and my appologies, if this sounds odd to more experineced c programmers...