Пример #1
0
        public static IntPtr ToFunctionPointer(this LuaAlloc d)
        {
            if (d == null)
            {
                return(IntPtr.Zero);
            }

            return(Marshal.GetFunctionPointerForDelegate <LuaAlloc>(d));
        }
Пример #2
0
        public static IntPtr ToFunctionPointer(this LuaAlloc d)
        {
            if (d == null)
            {
                return(IntPtr.Zero);
            }

#if NETFRAMEWORK
            return(Marshal.GetFunctionPointerForDelegate(d));
#else
            return(Marshal.GetFunctionPointerForDelegate <LuaAlloc>(d));
#endif
        }
Пример #3
0
 public static extern IntPtr lua_newstate(LuaAlloc f, IntPtr ud);
Пример #4
0
		internal static extern LuaStatePtr lua_newstate(LuaAlloc f, IntPtr ud);
Пример #5
0
		internal static extern void lua_setallocf(LuaStatePtr l, LuaAlloc f, IntPtr ud);
Пример #6
0
 internal static extern LuaStatePtr lua_newstate(LuaAlloc f, IntPtr ud);
Пример #7
0
 internal static extern void lua_setallocf(LuaStatePtr l, LuaAlloc f, IntPtr ud);
Пример #8
0
 public static void SetAllocf(LuaStatePtr l, LuaAlloc f, IntPtr ud)
 {
     System.GC.KeepAlive(f);
     LuaDelegates.lua_setallocf(l, f, ud);
 }
Пример #9
0
 public static LuaStatePtr NewState(LuaAlloc f, IntPtr ud)
 {
     System.GC.KeepAlive(f);
     return(LuaDelegates.lua_newstate(f, ud));
 }
Пример #10
0
 public static extern IntPtr NewState(LuaAlloc F, IntPtr UD);