gmqcc/tests/typedefs.qc

13 lines
219 B
C++
Raw Normal View History

typedef void(...) ptype;
2012-11-25 14:33:03 +00:00
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");
}