mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-25 16:13:14 +01:00
[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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user