Browse Source

+ support cdecl and stdcall on the WebAssembly target. They are essentially the
same, the only difference is that cdecl creates an unmangled alias

Nikolay Nikolov 3 năm trước cách đây
mục cha
commit
dcae87bd52
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      compiler/wasm32/cpuinfo.pas

+ 3 - 1
compiler/wasm32/cpuinfo.pas

@@ -73,7 +73,9 @@ Const
 
    { calling conventions supported by the code generator }
    supported_calling_conventions : tproccalloptions = [
-     pocall_internproc
+     pocall_internproc,
+     pocall_stdcall,
+     pocall_cdecl
    ];
 
    cputypestr : array[tcputype] of string[9] = ('',