]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - progsvm.h
Added the drawing functions and added also probably menu only message functions
[xonotic/darkplaces.git] / progsvm.h
index 77c1bce66d478a604d5dd5cd06e8fdb6a60df0ef..e2af3432bacd586d8035d2b5ba14b34a43f79867 100644 (file)
--- a/progsvm.h
+++ b/progsvm.h
@@ -423,15 +423,19 @@ void PRVM_ED_PrintNum (int ent);
 //============================================================================
 
 // used as replacement for a prog stack
-#if 1
-       #define PRVM_Begin  
-       #define PRVM_End        prog = 0;
+#define PRVM_DEBUGPRSTACK
+
+#ifdef PRVM_DEBUGPRSTACK
+#define PRVM_Begin  if(prog != 0) Con_Printf("prog not 0(prog = %i)!\n", PRVM_GetProgNr())
+#define PRVM_End       prog = 0
 #else
-       #define PRVM_Begin      { prvm_prog_t *_oldprog_ = prog
-       #define PRVM_End        if(_oldprog_ != 0) Con_Print("Stack used !\n"); prog = _oldprog_;}
-#endif 
+#define PRVM_Begin  
+#define PRVM_End       prog = 0
+#endif
+
 
-#if 1
+//#define PRVM_SAFENAME
+#ifndef PRVM_SAFENAME
        #define PRVM_NAME       (prog->name)
 #else
        #define PRVM_NAME       (prog->name ? prog->name : "Unknown prog name")
@@ -445,9 +449,7 @@ void PRVM_ED_PrintNum (int ent);
                                        else \
                                                prog->error_cmd*/
 
-#define PRVM_ERROR             PRVM_GCALL(error_cmd)(),Host_Error
-
-
+#define PRVM_ERROR             Host_Error
 
 // other prog handling functions
 qboolean PRVM_SetProgFromString(const char *str);