public static IntPtr ToFunctionPointer(this LuaAlloc d) { if (d == null) { return(IntPtr.Zero); } return(Marshal.GetFunctionPointerForDelegate <LuaAlloc>(d)); }
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 }
public static extern IntPtr lua_newstate(LuaAlloc f, IntPtr ud);
internal static extern LuaStatePtr lua_newstate(LuaAlloc f, IntPtr ud);
internal static extern void lua_setallocf(LuaStatePtr l, LuaAlloc f, IntPtr ud);
public static void SetAllocf(LuaStatePtr l, LuaAlloc f, IntPtr ud) { System.GC.KeepAlive(f); LuaDelegates.lua_setallocf(l, f, ud); }
public static LuaStatePtr NewState(LuaAlloc f, IntPtr ud) { System.GC.KeepAlive(f); return(LuaDelegates.lua_newstate(f, ud)); }
public static extern IntPtr NewState(LuaAlloc F, IntPtr UD);