pike.git / src / interpret.h

version» Context lines:

pike.git/src/interpret.h:1:   /*\   ||| This file a part of Pike, and is copyright by Fredrik Hubinette   ||| Pike is distributed as GPL (General Public License)   ||| See the files COPYING and DISCLAIMER for more information.   \*/      /* -  * $Id: interpret.h,v 1.32 1999/06/01 10:21:10 mirar Exp $ +  * $Id: interpret.h,v 1.33 1999/07/29 17:10:23 mirar Exp $    */   #ifndef INTERPRET_H   #define INTERPRET_H      #include "global.h"   #include "program.h"      #ifndef STRUCT_FRAME_DECLARED   #define STRUCT_FRAME_DECLARED   #endif
pike.git/src/interpret.h:38:   #define debug_check_stack() do{if(sp<evaluator_stack)fatal("Stack error.\n");}while(0)   #define check__positive(X,Y) if((X)<0) fatal(Y)   #include "error.h"   #else   #define check__positive(X,Y)   #define debug_check_stack()   #endif      #define check_stack(X) do { \    if(sp - evaluator_stack + (X) >= stack_size) \ -  error("Stack overflow.\n"); \ +  error("Svalue stack overflow. " \ +  "(%d of %d entries on stack, needed %d more entries)\n", \ +  sp-evaluator_stack,stack_size,(X)); \    }while(0)      #define check_mark_stack(X) do { \    if(mark_sp - mark_stack + (X) >= stack_size) \    error("Mark stack overflow.\n"); \    }while(0)      #define check_c_stack(X) do { \    long x_= ((char *)&x_) + STACK_DIRECTION * (X) - stack_top ; \    x_*=STACK_DIRECTION; \