Przeglądaj źródła

Ints default to 0 on cpp

Hugh Sanderson 16 lat temu
rodzic
commit
b817b7997c
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3 3
      tests/unit/TestReflect.hx

+ 3 - 3
tests/unit/TestReflect.hx

@@ -164,8 +164,8 @@ class TestReflect extends Test {
 		eq( i.intValue, 55 );
 		var i = Type.createEmptyInstance(MyClass);
 		t( Std.is(i,MyClass) );
-		eq( i.get(), #if flash9 0 #else null #end );
-		eq( i.intValue, #if flash9 0 #else null #end );
+		eq( i.get(), #if (flash9 || cpp) 0 #else null #end );
+		eq( i.intValue, #if (flash9 || cpp) 0 #else null #end );
 		var e : MyEnum = Type.createEnum(MyEnum,__unprotect__("A"));
 		eq( e, MyEnum.A );
 		var e : MyEnum = Type.createEnum(MyEnum,__unprotect__("C"),[55,"hello"]);
@@ -178,4 +178,4 @@ class TestReflect extends Test {
 		exc( function() Type.createEnum(MyEnum,"Z",[]) );
 	}
 
-}
+}