Skip to content
Snippets Groups Projects
Commit c84698cc authored by Fredrik Hübinette (Hubbe)'s avatar Fredrik Hübinette (Hubbe)
Browse files

more debug added

Rev: src/interpret.h:1.15
parent 14224155
No related branches found
No related tags found
No related merge requests found
...@@ -80,8 +80,14 @@ do{ \ ...@@ -80,8 +80,14 @@ do{ \
#define check_threads_etc() \ #define check_threads_etc() \
call_callback(& evaluator_callbacks, (void *)0) call_callback(& evaluator_callbacks, (void *)0)
#ifdef DEBUG
#define fast_check_threads_etc(X) do { \
static int div_; if(d_flag || !(div_++& ((1<<(X))-1))) check_threads_etc(); } while(0)
#else
#define fast_check_threads_etc(X) do { \ #define fast_check_threads_etc(X) do { \
static int div_; if(!(div_++& ((1<<(X))-1))) check_threads_etc(); } while(0) static int div_; if(!(div_++& ((1<<(X))-1))) check_threads_etc(); } while(0)
#endif
/* Prototypes begin here */ /* Prototypes begin here */
void push_sp_mark(void); void push_sp_mark(void);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment