2
0
Simon Krajewski 9 жил өмнө
parent
commit
19fe690851

+ 2 - 0
tests/unit/src/unit/hxcpp_issues/Issue352.hx

@@ -1,6 +1,7 @@
 package unit.hxcpp_issues;
 package unit.hxcpp_issues;
 
 
 class Issue352 extends Test {
 class Issue352 extends Test {
+	#if cpp
 	@:keep
 	@:keep
 	static function onSample( buf : cpp.Pointer<cpp.Float32>, len : Int ) {
 	static function onSample( buf : cpp.Pointer<cpp.Float32>, len : Int ) {
 		var data : haxe.io.BytesData = [];
 		var data : haxe.io.BytesData = [];
@@ -9,4 +10,5 @@ class Issue352 extends Test {
 	}
 	}
 
 
 	static function foo(d) { }
 	static function foo(d) { }
+	#end
 }
 }