Traits for function templates working! Need to finish for objects and specilizations, and I think also else statements.
This commit is contained in:
1 parent
46b9fc8b7f
commit
64fcb6b0b7
14 files changed
+396
-174
No files matched your search
@@ -43,6 +43,15 @@ void print(float toPrint) {
|
||||
return;
|
||||
}
|
||||
|
||||
void print(double toPrint) {
|
||||
__if_comp__ __C__ {
|
||||
__simple_passthrough__ """
|
||||
printf("%f", toPrint);
|
||||
"""
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
void println(float toPrint) {
|
||||
print(toPrint);
|
||||
println();
|
||||
|
||||
Reference in new issue
Block a user