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 years ago
parent
commit
dcae87bd52
1 changed files with 3 additions and 1 deletions
  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] = ('',