Simon Krajewski 9 роки тому
батько
коміт
19fe690851
1 змінених файлів з 2 додано та 0 видалено
  1. 2 0
      tests/unit/src/unit/hxcpp_issues/Issue352.hx

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

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