Working toward new C inline style

This commit is contained in:
Nathan Braswell
2015-04-04 01:32:40 -04:00
parent 639f4ff0fb
commit e37836aea5
11 changed files with 172 additions and 123 deletions

View File

@@ -1,6 +1,6 @@
import string:*;
__if_comp__ __C__ __simple_passthrough__ """
__if_comp__ __C__ simple_passthrough """
#include <stdio.h>
"""
@@ -10,7 +10,7 @@ __if_comp__ __C__ __simple_passthrough__ """
|void| print(|char*| toPrint) {
__if_comp__ __C__ {
__simple_passthrough__ """
simple_passthrough(toPrint = toPrint::) """
printf(toPrint);
"""
}
@@ -32,7 +32,7 @@ __if_comp__ __C__ __simple_passthrough__ """
|void| print(|int| toPrint) {
__if_comp__ __C__ {
__simple_passthrough__ """
simple_passthrough(toPrint = toPrint::) """
printf("%d", toPrint);
"""
}
@@ -46,7 +46,7 @@ __if_comp__ __C__ __simple_passthrough__ """
|void| print(|float| toPrint) {
__if_comp__ __C__ {
__simple_passthrough__ """
simple_passthrough(toPrint = toPrint::) """
printf("%f", toPrint);
"""
}
@@ -55,7 +55,7 @@ __if_comp__ __C__ __simple_passthrough__ """
|void| print(|double| toPrint) {
__if_comp__ __C__ {
__simple_passthrough__ """
simple_passthrough(toPrint = toPrint::) """
printf("%f", toPrint);
"""
}