Răsfoiți Sursa

spod_rtti+haxe3 fix

Nicolas Cannasse 13 ani în urmă
părinte
comite
32d527b2e1
1 a modificat fișierele cu 6 adăugiri și 2 ștergeri
  1. 6 2
      std/neko/db/Object.hx

+ 6 - 2
std/neko/db/Object.hx

@@ -28,8 +28,12 @@ package neko.db;
 	SPOD Object : the persistent object base type. See the tutorial on haXe
 	website to learn how to use SPOD.
 **/
-#if spod_macro #else
-class Object #if spod_rtti implements haxe.rtti.Infos #end {
+#if !spod_macro
+
+#if( spod_rtti && haxe3 )
+@:rttiInfos
+#end
+class Object #if (spod_rtti && !haxe3) implements haxe.rtti.Infos #end {
 
 /*
 	(optional)