gmqcc/tests/typedefs.qc
Wolfgang (Blub) Bumiller 7cd6a477f8 Typedef testcases
2012-11-25 15:33:03 +01:00

12 lines
223 B
C++

typedef void(string, ...) 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");
}