Implemented ultra-basic/incomplete function template instantiation type inference for Kalypso that just assigns the param type to the concat'd string right away which works in the most basic of cases. Will expand to cover pointers soon, and the rest when those features are implemented (object templates, function types)

This commit is contained in:
Nathan Braswell
2016-02-09 04:16:03 -05:00
parent 2ac1639b5e
commit f70aed9589
3 changed files with 34 additions and 3 deletions

View File

@@ -15,5 +15,14 @@ fun system(call_string: *char): int {
}
}
fun exit() exit(0);
fun exit(code: int) {
__if_comp__ __C__ {
simple_passthrough(code::) """
exit(code);
"""
}
}