]> de.git.xonotic.org Git - voretournament/voretournament.git/blobdiff - misc/source/gmqcc-src/tests/typedefs.qc
By fteqcc, hello gmqcc
[voretournament/voretournament.git] / misc / source / gmqcc-src / tests / typedefs.qc
diff --git a/misc/source/gmqcc-src/tests/typedefs.qc b/misc/source/gmqcc-src/tests/typedefs.qc
new file mode 100644 (file)
index 0000000..e9bc13b
--- /dev/null
@@ -0,0 +1,12 @@
+typedef void(...)     ptype;
+typedef string(float) funcsf;
+
+ptype print = #1;
+funcsf ftos = #2;
+
+void main() {
+    typedef float funcsf;
+    funcsf a;
+    a = 0;
+    print("A typedeffed function, 0=", ftos(a), "\n");
+}