YACAL2: CASL2処理系
[YACASL2.git] / test / utest / Template.c
1 #include <stdio.h>
2 #include "casl2.h"
3 #include "assemble.h"
4 #include "exec.h"
5
6 int main(){
7     int i;
8     WORD r;
9     char *str[] = {
10         "str0", "str1", "str2", "str3", "str4", "str5", "str6", ...
11     };
12     for(i = 0; i < sizeof(str)/sizeof(str[0]); i++) {
13         r = <testfunc>(str[i]);
14         printf("%s\t0x%04x", str[i], r);
15         if(cerrno > 0) {
16             printf("\tError - %d\t%s", cerrno, cerrmsg);
17             freecerr();
18         }
19         printf("\n");
20     }
21     return 0;
22 }