File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -357,6 +357,8 @@ class BackendLinux86 : CompilerBackend {
357
357
);
358
358
}
359
359
output ~= format(" sub r15, %d\n " , word.params.length * 8 );
360
+
361
+ // TODO: support more than 6 parameters
360
362
361
363
output ~= format(" call %s\n " , node.name);
362
364
Original file line number Diff line number Diff line change @@ -696,6 +696,10 @@ class BackendRM86 : CompilerBackend {
696
696
}
697
697
698
698
override void CompileExtern (ExternNode node) {
699
+ if (node.externType == ExternType.C) {
700
+ Error(node.error, " This backend doesn't support C externs" );
701
+ }
702
+
699
703
Word word;
700
704
word.raw = node.externType == ExternType.Raw;
701
705
words[node.func] = word;
Original file line number Diff line number Diff line change @@ -663,6 +663,11 @@ class BackendUXN : CompilerBackend {
663
663
}
664
664
665
665
override void CompileExtern (ExternNode node) {
666
+ if (node.externType == ExternType.C) {
667
+ Error(node.error, " This backend doesn't support C externs" );
668
+ }
669
+
670
+
666
671
Word word;
667
672
word.raw = node.externType == ExternType.Raw;
668
673
words[node.func] = word;
You can’t perform that action at this time.
0 commit comments