mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-22 17:48:01 +02:00
Mintest changes
This commit is contained in:
parent
24d083f028
commit
e7aebdaccf
6 changed files with 14 additions and 226 deletions
|
@ -237,8 +237,12 @@ namespace Hey.Dude.Bro
|
|||
|
||||
public static int Main(String[] args)
|
||||
{
|
||||
for (int i < 10)
|
||||
Blurg.Hey();
|
||||
Blurg.Hey();
|
||||
while (true)
|
||||
{
|
||||
new String();
|
||||
GC.Collect();
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,42 +1,2 @@
|
|||
using System;
|
||||
|
||||
using System;
|
||||
|
||||
|
||||
|
||||
class Program
|
||||
{
|
||||
private function bool on_send_recv_delegate(uint8* data, ref int length);
|
||||
|
||||
struct plugin_header
|
||||
{
|
||||
public on_send_recv_delegate on_recv;
|
||||
public on_send_recv_delegate on_send;
|
||||
}
|
||||
|
||||
private static bool on_recv(uint8* data, ref int length)
|
||||
{
|
||||
//Console.WriteLine(scope String().AppendF("RECV\tID: {}", data[0]));
|
||||
return true;
|
||||
}
|
||||
|
||||
private static bool on_send(uint8* data, ref int length)
|
||||
{
|
||||
//Console.WriteLine(scope String().AppendF("SEND\tID: {}", data[0]));
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
[CLink]
|
||||
[Export]
|
||||
public static void Install(void* ptr)
|
||||
{
|
||||
plugin_header* plugin = (plugin_header*) ptr;
|
||||
|
||||
plugin.on_recv = => on_recv;
|
||||
plugin.on_send = => on_send;
|
||||
|
||||
//Console.WriteLine("INSTALLED!!!");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -5,66 +5,18 @@ using System.Diagnostics;
|
|||
using System.Threading;
|
||||
using System.Collections;
|
||||
|
||||
struct Zoops
|
||||
{
|
||||
public int mA = 123;
|
||||
public int mB = 234;
|
||||
|
||||
public static implicit operator Zoops(float f)
|
||||
{
|
||||
Zoops val = default;
|
||||
val.mA = (.)f;
|
||||
val.mB = 200;
|
||||
return val;
|
||||
}
|
||||
|
||||
public static implicit operator Zoops(float[2] f)
|
||||
{
|
||||
Zoops val = default;
|
||||
val.mA = (.)f[0];
|
||||
val.mB = (.)f[1];
|
||||
return val;
|
||||
}
|
||||
}
|
||||
|
||||
struct Blurg
|
||||
{
|
||||
public void Foo<T>()
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
public void Zarf<T>()
|
||||
{
|
||||
T Yorp<T2>(T2 val)
|
||||
{
|
||||
return default;
|
||||
}
|
||||
}
|
||||
|
||||
[CallingConvention(.Cdecl)]
|
||||
|
||||
public static void Hey()
|
||||
{
|
||||
|
||||
String str = new String();
|
||||
delete str;
|
||||
|
||||
//Internal.Malloc(123);
|
||||
Internal.StdMalloc(123);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
struct StructA
|
||||
{
|
||||
public int mA = 99;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*namespace System
|
||||
{
|
||||
extension String
|
||||
{
|
||||
public String SubText(String input, int position, int length)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}*/
|
Loading…
Add table
Add a link
Reference in a new issue