]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - tests/bitnot.qc
Remove &~= operator from gmqccs operator table, only fteqcc supports it.
[xonotic/gmqcc.git] / tests / bitnot.qc
index 17ba6cd0e09dc7330caef5c33a56191de0bbbc90..54b6ecb30f7a2f4fe07e8cb84e20d6762a7a6e79 100644 (file)
@@ -6,11 +6,28 @@ void main() {
     vector e; e = '1 1 1';
     vector f; f = '1 1 1';
 
+#ifdef __STD_FTEQCC__
     a &~= 1; // 0
+#else
+    a &= ~1; // 0
+#endif
+#ifdef __STD_GMQCC__
     b &= ~1; // 0
     c &= ~d; // 0
+#else
+    b &~= 1; // 0
+    c &~= 1; // 0
+#endif
+#ifdef __STD_FTEQCC__
     f &~= e; // '0 0 0'
+#else
+    f &= ~e; // '0 0 0'
+#endif
+#ifdef __STD_GMQCC__
     e &= ~e; // '0 0 0'
+#else
+    e &~= e; // '0 0 0'
+#endif
 
     print("a: ", ftos(a), "\nb: ",
                  ftos(b), "\nc: ",