forked from M-Labs/nac3
1
0
Fork 0

nac3standalone: add output_long

This commit is contained in:
ychenfo 2021-12-13 04:06:38 +08:00 committed by Gitea
parent b5637a04e9
commit ccfcba4066
2 changed files with 8 additions and 0 deletions

View File

@ -2,6 +2,10 @@
def output_int(x: int32):
...
@extern
def output_long(x: int64):
...
class A:
a: int32

View File

@ -5,6 +5,10 @@ void output_int(int x) {
printf("%d\n", x);
}
void output_long(long x) {
printf("%ld\n", x);
}
void output_asciiart(int x) {
static char chars[] = " .,-:;i+hHM$*#@ ";
if(x < 0) {