1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 20:12:21 +02:00

Minlib fixes

This commit is contained in:
Brian Fiete 2022-05-24 11:35:02 -07:00
parent 470ce96bb9
commit 0a51049d65
2 changed files with 4 additions and 10 deletions

View file

@ -366,13 +366,13 @@ namespace System
[CallingConvention(.Stdcall), CLink] [CallingConvention(.Stdcall), CLink]
static extern int32 ftoa(float val, char8* str); static extern int32 ftoa(float val, char8* str);
static extern int32 ToString(float val, char8* str); static extern int32 ToString(float val, char8* str, bool roundTrip);
public override void ToString(String strBuffer) public override void ToString(String strBuffer)
{ {
char8[128] outBuff = ?; char8[128] outBuff = ?;
//ftoa((float)this, &outBuff); //ftoa((float)this, &outBuff);
int len = ToString((float)this, &outBuff); int len = ToString((float)this, &outBuff, false);
strBuffer.Append(&outBuff, len); strBuffer.Append(&outBuff, len);
} }
} }

View file

@ -193,14 +193,8 @@ namespace System.Threading
} }
} }
public void Suspend() { SuspendInternal(); } public extern void Suspend();
private extern void SuspendInternal(); public extern void Resume();
public void Resume() { ResumeInternal(); }
private extern void ResumeInternal();
public void Interrupt() { InterruptInternal(); }
private extern void InterruptInternal();
public ThreadPriority Priority public ThreadPriority Priority
{ {