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
 }