mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Mintest changes
This commit is contained in:
parent
24d083f028
commit
e7aebdaccf
6 changed files with 14 additions and 226 deletions
|
@ -11,7 +11,6 @@ Description = "Mintest"
|
||||||
|
|
||||||
[Configs.Debug.Win64]
|
[Configs.Debug.Win64]
|
||||||
CLibType = "Static"
|
CLibType = "Static"
|
||||||
BeefLibType = "DynamicDebug"
|
|
||||||
StackSize = 4194304
|
StackSize = 4194304
|
||||||
DebugCommandArguments = "hey=\"yo man\" zag= zoogles boof stoopers \"\"\"abc efg\"\"\""
|
DebugCommandArguments = "hey=\"yo man\" zag= zoogles boof stoopers \"\"\"abc efg\"\"\""
|
||||||
DebugWorkingDirectory = ".\\"
|
DebugWorkingDirectory = ".\\"
|
||||||
|
@ -92,10 +91,6 @@ RelocType = "PIC"
|
||||||
Type = "Folder"
|
Type = "Folder"
|
||||||
Name = "snorg"
|
Name = "snorg"
|
||||||
|
|
||||||
[[ProjectFolder.Items.Items]]
|
|
||||||
Type = "IgnoreSource"
|
|
||||||
Name = "Zap.bf"
|
|
||||||
|
|
||||||
[[ProjectFolder.Items]]
|
[[ProjectFolder.Items]]
|
||||||
Type = "Source"
|
Type = "Source"
|
||||||
Path = "../../../temp/test.txt"
|
Path = "../../../temp/test.txt"
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
FileVersion = 1
|
FileVersion = 1
|
||||||
Projects = {mintest = {Path = "."}, minlib = {Path = "minlib"}, LibA = {Path = "LibA"}, LibB = {Path = "LibB"}, mintest2 = {Path = "mintest2"}}
|
Projects = {mintest = {Path = "."}, minlib = {Path = "minlib"}, LibA = {Path = "LibA"}, LibB = {Path = "LibB"}, mintest2 = {Path = "mintest2"}}
|
||||||
|
ExtraPlatforms = ["Linux64"]
|
||||||
|
|
||||||
[Workspace]
|
[Workspace]
|
||||||
StartupProject = "mintest"
|
StartupProject = "mintest"
|
||||||
|
PreprocessorMacros = ["z5"]
|
||||||
|
|
||||||
[Configs.Debug.Win32]
|
[Configs.Debug.Win32]
|
||||||
InitLocalVariables = true
|
InitLocalVariables = true
|
||||||
|
@ -20,32 +22,15 @@ COptimizationLevel = "Og"
|
||||||
Filter = "System.String"
|
Filter = "System.String"
|
||||||
|
|
||||||
[Configs.Debug.WinFart]
|
[Configs.Debug.WinFart]
|
||||||
Toolset = "GNU"
|
|
||||||
EmitDebugInfo = "No"
|
EmitDebugInfo = "No"
|
||||||
EmitDynamicCastCheck = false
|
EmitDynamicCastCheck = false
|
||||||
EnableObjectDebugFlags = false
|
EnableObjectDebugFlags = false
|
||||||
EmitObjectAccessCheck = false
|
EmitObjectAccessCheck = false
|
||||||
EnableRealtimeLeakCheck = false
|
|
||||||
AllowHotSwapping = false
|
|
||||||
AllocStackTraceDepth = 0
|
AllocStackTraceDepth = 0
|
||||||
|
|
||||||
[Configs.Debug.Linux64]
|
|
||||||
Toolset = "GNU"
|
|
||||||
EnableRealtimeLeakCheck = false
|
|
||||||
|
|
||||||
[Configs.Debug.macOS]
|
|
||||||
Toolset = "GNU"
|
|
||||||
EnableRealtimeLeakCheck = false
|
|
||||||
|
|
||||||
[Configs.Debug.iOS]
|
[Configs.Debug.iOS]
|
||||||
Toolset = "GNU"
|
|
||||||
EnableRealtimeLeakCheck = false
|
|
||||||
IntermediateType = "Bitcode"
|
IntermediateType = "Bitcode"
|
||||||
|
|
||||||
[Configs.Debug.aarch64-none-linux-android21]
|
|
||||||
Toolset = "GNU"
|
|
||||||
EnableRealtimeLeakCheck = false
|
|
||||||
|
|
||||||
[Configs.Release.Win32]
|
[Configs.Release.Win32]
|
||||||
Toolset = "GNU"
|
Toolset = "GNU"
|
||||||
BfOptimizationLevel = "OgPlus"
|
BfOptimizationLevel = "OgPlus"
|
||||||
|
@ -61,125 +46,18 @@ AllocStackTraceDepth = 0
|
||||||
IntermediateType = "ObjectAndIRCode"
|
IntermediateType = "ObjectAndIRCode"
|
||||||
COptimizationLevel = "O3"
|
COptimizationLevel = "O3"
|
||||||
|
|
||||||
[Configs.Release.WinFart]
|
|
||||||
Toolset = "GNU"
|
|
||||||
BfOptimizationLevel = "O0"
|
|
||||||
EmitDebugInfo = "No"
|
|
||||||
AllocStackTraceDepth = 0
|
|
||||||
IncrementalBuild = true
|
|
||||||
COptimizationLevel = "O0"
|
|
||||||
|
|
||||||
[Configs.Release.Linux64]
|
|
||||||
Toolset = "GNU"
|
|
||||||
|
|
||||||
[Configs.Release.macOS]
|
|
||||||
Toolset = "GNU"
|
|
||||||
|
|
||||||
[Configs.Release.iOS]
|
[Configs.Release.iOS]
|
||||||
Toolset = "GNU"
|
|
||||||
IntermediateType = "Bitcode"
|
IntermediateType = "Bitcode"
|
||||||
|
|
||||||
[Configs.Release.aarch64-none-linux-android21]
|
|
||||||
Toolset = "GNU"
|
|
||||||
|
|
||||||
[Configs.Test.Win32]
|
|
||||||
Toolset = "GNU"
|
|
||||||
BfSIMDSetting = "None"
|
|
||||||
EmitDebugInfo = "No"
|
|
||||||
EmitDynamicCastCheck = false
|
|
||||||
EnableObjectDebugFlags = false
|
|
||||||
EmitObjectAccessCheck = false
|
|
||||||
EnableRealtimeLeakCheck = false
|
|
||||||
AllocStackTraceDepth = 0
|
|
||||||
CSIMDSetting = "None"
|
|
||||||
COptimizationLevel = "O2"
|
|
||||||
ConfigSelections = {mintest = {Config = "Debug"}}
|
|
||||||
|
|
||||||
[Configs.Test.WinFart]
|
|
||||||
Toolset = "GNU"
|
|
||||||
BuildKind = "Normal"
|
|
||||||
EmitDebugInfo = "No"
|
|
||||||
EmitDynamicCastCheck = false
|
|
||||||
EnableObjectDebugFlags = false
|
|
||||||
EmitObjectAccessCheck = false
|
|
||||||
EnableRealtimeLeakCheck = false
|
|
||||||
AllowHotSwapping = false
|
|
||||||
AllocStackTraceDepth = 0
|
|
||||||
COptimizationLevel = "O2"
|
|
||||||
|
|
||||||
[Configs.Test.Linux64]
|
|
||||||
Toolset = "GNU"
|
|
||||||
EnableRealtimeLeakCheck = false
|
|
||||||
COptimizationLevel = "O2"
|
|
||||||
|
|
||||||
[Configs.Test.macOS]
|
[Configs.Test.macOS]
|
||||||
Toolset = "GNU"
|
|
||||||
EnableRealtimeLeakCheck = false
|
|
||||||
COptimizationLevel = "O2"
|
COptimizationLevel = "O2"
|
||||||
|
|
||||||
[Configs.Test.iOS]
|
[Configs.Test.iOS]
|
||||||
Toolset = "GNU"
|
|
||||||
EnableRealtimeLeakCheck = false
|
|
||||||
IntermediateType = "Bitcode"
|
IntermediateType = "Bitcode"
|
||||||
COptimizationLevel = "O2"
|
COptimizationLevel = "O2"
|
||||||
|
|
||||||
[Configs.Test.aarch64-none-linux-android21]
|
[Configs.Test.aarch64-none-linux-android21]
|
||||||
Toolset = "GNU"
|
|
||||||
EnableRealtimeLeakCheck = false
|
|
||||||
COptimizationLevel = "O2"
|
|
||||||
|
|
||||||
[Configs.Paranoid.Win32]
|
|
||||||
Toolset = "GNU"
|
|
||||||
EmitDynamicCastCheck = false
|
|
||||||
EnableObjectDebugFlags = false
|
|
||||||
EmitObjectAccessCheck = false
|
|
||||||
EnableRealtimeLeakCheck = false
|
|
||||||
EnableSideStack = false
|
|
||||||
COptimizationLevel = "O2"
|
|
||||||
|
|
||||||
[Configs.Paranoid.Win64]
|
|
||||||
Toolset = "GNU"
|
|
||||||
EmitDynamicCastCheck = false
|
|
||||||
EnableObjectDebugFlags = false
|
|
||||||
EmitObjectAccessCheck = false
|
|
||||||
EnableRealtimeLeakCheck = false
|
|
||||||
EnableSideStack = false
|
|
||||||
COptimizationLevel = "O2"
|
|
||||||
ConfigSelections = {mintest2 = {Enabled = false}}
|
|
||||||
|
|
||||||
[Configs.Paranoid.WinFart]
|
|
||||||
Toolset = "GNU"
|
|
||||||
EmitDebugInfo = "No"
|
|
||||||
EmitDynamicCastCheck = false
|
|
||||||
EnableObjectDebugFlags = false
|
|
||||||
EmitObjectAccessCheck = false
|
|
||||||
EnableRealtimeLeakCheck = false
|
|
||||||
EnableSideStack = false
|
|
||||||
AllowHotSwapping = false
|
|
||||||
AllocStackTraceDepth = 0
|
|
||||||
COptimizationLevel = "O2"
|
|
||||||
|
|
||||||
[Configs.Paranoid.Linux64]
|
|
||||||
Toolset = "GNU"
|
|
||||||
EnableRealtimeLeakCheck = false
|
|
||||||
EnableSideStack = false
|
|
||||||
COptimizationLevel = "O2"
|
|
||||||
|
|
||||||
[Configs.Paranoid.macOS]
|
|
||||||
Toolset = "GNU"
|
|
||||||
EnableRealtimeLeakCheck = false
|
|
||||||
EnableSideStack = false
|
|
||||||
COptimizationLevel = "O2"
|
|
||||||
|
|
||||||
[Configs.Paranoid.iOS]
|
|
||||||
Toolset = "GNU"
|
|
||||||
EnableRealtimeLeakCheck = false
|
|
||||||
EnableSideStack = false
|
|
||||||
IntermediateType = "Bitcode"
|
|
||||||
COptimizationLevel = "O2"
|
COptimizationLevel = "O2"
|
||||||
|
|
||||||
[Configs.Paranoid.aarch64-none-linux-android21]
|
[Configs.Paranoid.aarch64-none-linux-android21]
|
||||||
Toolset = "GNU"
|
|
||||||
EnableRealtimeLeakCheck = false
|
|
||||||
EnableSideStack = false
|
|
||||||
COptimizationLevel = "O2"
|
COptimizationLevel = "O2"
|
||||||
|
|
|
@ -3,7 +3,6 @@ Dependencies = {minlib = "*"}
|
||||||
|
|
||||||
[Project]
|
[Project]
|
||||||
Name = "LibA"
|
Name = "LibA"
|
||||||
TargetType = "BeefLib"
|
|
||||||
DefaultNamespace = ""
|
DefaultNamespace = ""
|
||||||
|
|
||||||
[Configs.Debug.Win32]
|
[Configs.Debug.Win32]
|
||||||
|
|
|
@ -237,8 +237,12 @@ namespace Hey.Dude.Bro
|
||||||
|
|
||||||
public static int Main(String[] args)
|
public static int Main(String[] args)
|
||||||
{
|
{
|
||||||
for (int i < 10)
|
Blurg.Hey();
|
||||||
Blurg.Hey();
|
while (true)
|
||||||
|
{
|
||||||
|
new String();
|
||||||
|
GC.Collect();
|
||||||
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,42 +1,2 @@
|
||||||
using System;
|
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.Threading;
|
||||||
using System.Collections;
|
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
|
struct Blurg
|
||||||
{
|
{
|
||||||
public void Foo<T>()
|
|
||||||
{
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Zarf<T>()
|
|
||||||
{
|
|
||||||
T Yorp<T2>(T2 val)
|
|
||||||
{
|
|
||||||
return default;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[CallingConvention(.Cdecl)]
|
|
||||||
public static void Hey()
|
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