mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-03-30 23:24:11 +08:00
http://hipbyte.myjetbrains.com/youtrack/issue/RM-293 GLKKit structures are declared as the following. If use union type when generate bridgesupport, it is not output the definition of a data structure using <struct> tag into bridgesupport file. So, Boxed#new does not work for these structure. #if defined(__STRICT_ANSI__) struct _GLKMatrix4 { float m[16]; } __attribute__((aligned(16))); typedef struct _GLKMatrix4 GLKMatrix4; #else union _GLKMatrix4 { struct { float m00, m01, m02, m03; float m10, m11, m12, m13; float m20, m21, m22, m23; float m30, m31, m32, m33; }; float m[16]; } __attribute__((aligned(16))); typedef union _GLKMatrix4 GLKMatrix4; #endif