浏览代码

+ 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 年之前
父节点
当前提交
dcae87bd52
共有 1 个文件被更改,包括 3 次插入1 次删除
  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] = ('',