浏览代码

allow to use SFlags in flash

Nicolas Cannasse 14 年之前
父节点
当前提交
b407b36fab
共有 1 个文件被更改,包括 1 次插入0 次删除
  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 SSerialized = String
 typedef SNekoSerialized = String
 typedef SNekoSerialized = String
 
 
+@:native("Int")
 extern class SFlags<T> {
 extern class SFlags<T> {
 	public inline function get( v : T ) : Bool {
 	public inline function get( v : T ) : Bool {
 		return (cast this) & (1 << Type.enumIndex(v)) != 0;
 		return (cast this) & (1 << Type.enumIndex(v)) != 0;