Explorar o código

allow to use SFlags in flash

Nicolas Cannasse %!s(int64=14) %!d(string=hai) anos
pai
achega
b407b36fab
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      std/neko/db/Types.hx

+ 1 - 0
std/neko/db/Types.hx

@@ -52,6 +52,7 @@ typedef SEncoded = Int
 typedef SSerialized = String
 typedef SNekoSerialized = String
 
+@:native("Int")
 extern class SFlags<T> {
 	public inline function get( v : T ) : Bool {
 		return (cast this) & (1 << Type.enumIndex(v)) != 0;