[svn r8] changed backend includes to always use the gen/<foo>.h prefix

fixed passing string literals as array parameters
few other fixes
moved some array routines into gen/arrays
This commit is contained in:
Tomas Lindquist Olsen
2007-09-03 17:34:30 +02:00
parent 3912dd6f04
commit fcbcd83d8b
13 changed files with 407 additions and 339 deletions

View File

@@ -7,9 +7,9 @@ struct vec3
return x*v.x + y*v.y + z*v.z;
}
void print(char* n)
void print(char[] n)
{
printf("%s = vec3(%.4f, %.4f, %.4f)\n", n, x,y,z);
printf("%.*s = vec3(%.4f, %.4f, %.4f)\n", n.length, n.ptr, x,y,z);
}
}