1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-07-01 13:56:00 +02:00

Wasm calling convention fixes. IDEHelper/Tests runs on wasm now.

This commit is contained in:
Brian Fiete 2024-10-25 11:20:01 -04:00
parent c0ebcc8fda
commit 31746c1f19
12 changed files with 99 additions and 13 deletions

View file

@ -90,11 +90,12 @@ namespace System
static function void(StringView str) OutString = => OutString_Simple;
#if !BF_RUNTIME_DISABLE
#if !BF_RUNTIME_DISABLE && !BF_PLATFORM_WASM
private static extern void PutChars(char8* c, int32 len);
#else
[CLink]
private static extern void putchar(char8 c);
private static extern int32 putchar(char8 c);
[LinkName("Console_PutChars")]
private static void PutChars(char8* c, int32 len)
{
for (int i < len)