public int SetHook(EventMasks mask, int count) { if (Disposed) { return(-1); } return(LuaCore.SetHook(Runtime.State, mask, count)); }
/// <summary> /// Activates the debug hook /// </summary> /// <param name="mask">Mask</param> /// <param name="count">Count</param> /// <returns>see lua docs. -1 if hook is already set</returns> /// <author>Reinhard Ostermeier</author> public int SetDebugHook(EventMasks mask, int count) { if (hookCallback == null) { hookCallback = new LuaHookFunction(DebugHookCallback); return(LuaDLL.lua_sethook(luaState, hookCallback, (int)mask, count)); } return(-1); }
/* * Lets go of a previously allocated reference to a table, function * or userdata */ #region lua debug functions /// <summary> /// Activates the debug hook /// </summary> /// <param name = "mask">Mask</param> /// <param name = "count">Count</param> /// <returns>see lua docs. -1 if hook is already set</returns> /// <author>Reinhard Ostermeier</author> public void SetDebugHook(EventMasks mask, int count) { if (hookCallback.IsNull()) { hookCallback = new LuaCore.lua_Hook(DebugHookCallback); LuaCore.lua_sethook(luaState, hookCallback, (int)mask, count); return; } }
/* * Lets go of a previously allocated reference to a table, function * or userdata */ #region lua debug functions /// <summary> /// Activates the debug hook /// </summary> /// <param name = "mask">Mask</param> /// <param name = "count">Count</param> /// <returns>see lua docs. -1 if hook is already set</returns> public int SetDebugHook(EventMasks mask, int count) { if (hookCallback == null) { hookCallback = new LuaHook(Lua.DebugHookCallback); return(LuaCore.LuaSetHook(luaState, hookCallback, (int)mask, count)); } return(-1); }
/* * Lets go of a previously allocated reference to a table, function * or userdata */ #region lua debug functions /// <summary> /// Activates the debug hook /// </summary> /// <param name = "mask">Mask</param> /// <param name = "count">Count</param> /// <returns>see lua docs. -1 if hook is already set</returns> /// <author>Reinhard Ostermeier</author> public int SetDebugHook(EventMasks mask, int count) { if (hookCallback.IsNull()) { hookCallback = new LuaCore.lua_Hook(Lua.DebugHookCallback); return(LuaCore.lua_sethook(luaState, hookCallback, (int)mask, count)); } return(-1); }
/* * Lets go of a previously allocated reference to a table, function * or userdata */ #region lua debug functions /// <summary> /// Activates the debug hook /// </summary> /// <param name = "mask">Mask</param> /// <param name = "count">Count</param> /// <returns>see lua docs. -1 if hook is already set</returns> /// <author>Reinhard Ostermeier</author> public int SetDebugHook (EventMasks mask, int count) { if (hookCallback == null) { hookCallback = new LuaHook (Lua.DebugHookCallback); return LuaCore.LuaSetHook (luaState, hookCallback, (int)mask, count); } return -1; }
/* * Lets go of a previously allocated reference to a table, function * or userdata */ #region lua debug functions /// <summary> /// Activates the debug hook /// </summary> /// <param name = "mask">Mask</param> /// <param name = "count">Count</param> /// <returns>see lua docs. -1 if hook is already set</returns> /// <author>Reinhard Ostermeier</author> public int SetDebugHook (EventMasks mask, int count) { if (hookCallback.IsNull ()) { hookCallback = new LuaCore.lua_Hook (Lua.DebugHookCallback); return LuaCore.lua_sethook (luaState, hookCallback, (int)mask, count); } return -1; }
public static extern IntPtr XSelectInput(IntPtr Display, int Window, EventMasks EventMask);
public int SetDebugHook(EventMasks mask, int count) { if (this.hookCallback == null) { this.hookCallback = new LuaHookFunction(this.DebugHookCallback); return LuaJIT.lua_sethook(this.luaState, this.hookCallback, (int) mask, count); } return -1; }
/// <summary> /// Activates the debug hook /// </summary> /// <param name="mask">Mask</param> /// <param name="count">Count</param> /// <returns>see lua docs. -1 if hook is already set</returns> /// <author>Reinhard Ostermeier</author> public int SetDebugHook(EventMasks mask, int count) { if (hookCallback == null) { hookCallback = new LuaHookFunction(DebugHookCallback); return LuaDLL.lua_sethook(luaState, hookCallback, (int)mask, count); } return -1; }
private static extern int WaitCommEvent(int hFile, EventMasks Mask, Overlapped lpOverlap);
[DllImport("kernel32.dll")] private static extern int WaitCommEvent(int hFile, ref EventMasks Mask, ref OVERLAPPED lpOverlap);
public static int SetHook(ScriptState luaState, EventMasks mask, int count) { return(ScriptApi.SetHook(luaState, (int)mask, count)); }