]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - pr_comp.h
Fix engine not starting on Windows if linked against SDL > 2.0.5
[xonotic/darkplaces.git] / pr_comp.h
index 0ffe578c726d21126d96385bb1eb8ee8bc7225e9..d1643b628e15be619dc3b02115222b0e4c2852ce 100644 (file)
--- a/pr_comp.h
+++ b/pr_comp.h
@@ -42,7 +42,7 @@ typedef enum etype_e {ev_void, ev_string, ev_float, ev_vector, ev_entity, ev_fie
 #define        RESERVED_OFS    28
 
 
-enum opcode_e
+typedef enum opcode_e
 {
        OP_DONE,
        OP_MUL_F,
@@ -119,7 +119,8 @@ enum opcode_e
 
        OP_BITAND,
        OP_BITOR
-};
+}
+opcode_t;
 
 
 typedef struct statement_s
@@ -183,6 +184,14 @@ typedef struct mfunction_s
 }
 mfunction_t;
 
+typedef struct mstatement_s
+{
+       opcode_t        op;
+       int                     operand[3]; // always a global or -1 for unused
+       int                     jumpabsolute; // only used by IF, IFNOT, GOTO
+}
+mstatement_t;
+
 
 #define        PROG_VERSION    6
 typedef struct dprograms_s