Update Files

This commit is contained in:
2025-01-22 16:18:30 +01:00
parent ed4603cf95
commit a36294b518
16718 changed files with 2960346 additions and 0 deletions

View File

@ -0,0 +1,19 @@
class TestBasic extends haxe.unit.TestCase
{
public function new() super();
function testStartTelemetry(string:String)
{
var thread_id:Int = startTelemetry(true, true);
assertTrue(thread_id>=0);
}
function startTelemetry(with_profiler:Bool=true,
with_allocations:Bool=true):Int
{
// Compile will fail without -D HXCPP_TELEMETRY
return untyped __global__.__hxcpp_hxt_start_telemetry(with_profiler,
with_allocations);
}
}

View File

@ -0,0 +1,13 @@
package;
class TestMain {
static function main(){
var r = new haxe.unit.TestRunner();
r.add(new TestBasic());
var t0 = haxe.Timer.stamp();
var success = r.run();
trace(" Time : " + (haxe.Timer.stamp()-t0)*1000 );
Sys.exit(success ? 0 : 1);
}
}

View File

@ -0,0 +1,6 @@
-cpp bin
-main TestMain
-resource TestMain.hx
-D HXCPP_TELEMETRY
-D HXCPP_STACK_TRACE
-cp ../unit

View File

@ -0,0 +1,2 @@
haxe compile.hxml
"bin/TestMain.exe"