Example #1
0
        public static void Init(lua_State L)
        {
#if C_API
            LunaData lunaData = new LunaData();
            luna_init(L, ref lunaData);
            ___type        = lunaData.type;
            ___super       = lunaData.super;
            ___getters     = lunaData.getters;
            ___setters     = lunaData.setters;
            ___get_indexed = lunaData.get_indexed;
            ___set_indexed = lunaData.set_indexed;
#else
            ___type        = Marshal.StringToHGlobalAnsi("___type");
            ___super       = Marshal.StringToHGlobalAnsi("___super");
            ___getters     = Marshal.StringToHGlobalAnsi("___getters");
            ___setters     = Marshal.StringToHGlobalAnsi("___setters");
            ___get_indexed = Marshal.StringToHGlobalAnsi("___get_indexed");
            ___set_indexed = Marshal.StringToHGlobalAnsi("___set_indexed");
#endif
        }
Example #2
0
 public static extern int luna_init(lua_State L, ref LunaData data);