Exemplo n.º 1
0
        public static IntPtr ToFunctionPointer(this LuaAlloc d)
        {
            if (d == null)
            {
                return(IntPtr.Zero);
            }

            return(Marshal.GetFunctionPointerForDelegate <LuaAlloc>(d));
        }
Exemplo n.º 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
        }
Exemplo n.º 3
0
 public static extern IntPtr lua_newstate(LuaAlloc f, IntPtr ud);
Exemplo n.º 4
0
		internal static extern LuaStatePtr lua_newstate(LuaAlloc f, IntPtr ud);
Exemplo n.º 5
0
		internal static extern void lua_setallocf(LuaStatePtr l, LuaAlloc f, IntPtr ud);
Exemplo n.º 6
0
 internal static extern LuaStatePtr lua_newstate(LuaAlloc f, IntPtr ud);
Exemplo n.º 7
0
 internal static extern void lua_setallocf(LuaStatePtr l, LuaAlloc f, IntPtr ud);
Exemplo n.º 8
0
 public static void SetAllocf(LuaStatePtr l, LuaAlloc f, IntPtr ud)
 {
     System.GC.KeepAlive(f);
     LuaDelegates.lua_setallocf(l, f, ud);
 }
Exemplo n.º 9
0
 public static LuaStatePtr NewState(LuaAlloc f, IntPtr ud)
 {
     System.GC.KeepAlive(f);
     return(LuaDelegates.lua_newstate(f, ud));
 }
Exemplo n.º 10
0
 public static extern IntPtr NewState(LuaAlloc F, IntPtr UD);