コード例 #1
0
 public int SetHook(EventMasks mask, int count)
 {
     if (Disposed)
     {
         return(-1);
     }
     return(LuaCore.SetHook(Runtime.State, mask, count));
 }
コード例 #2
0
ファイル: Lua.cs プロジェクト: WolfpawGroup/RTC3
 /// <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);
 }
コード例 #3
0
ファイル: Lua.cs プロジェクト: tstavrianos/Lua.NET
 /*
  * 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;
     }
 }
コード例 #4
0
ファイル: Lua.cs プロジェクト: aron1982/Unity3D-NLua
        /*
         * 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);
        }
コード例 #5
0
ファイル: Lua.cs プロジェクト: cdhowie/NLua
        /*
         * 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);
        }
コード例 #6
0
ファイル: Lua.cs プロジェクト: nobitagamer/NLua
		/*
		 * 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;
		}
コード例 #7
0
ファイル: Lua.cs プロジェクト: Azhei/NLua
		/*
		 * 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;
		}
コード例 #8
0
ファイル: Xlib.cs プロジェクト: 1j01/node-ahk
 public static extern IntPtr XSelectInput(IntPtr Display, int Window, EventMasks EventMask);
コード例 #9
0
ファイル: Lua.cs プロジェクト: Evangileon/LuaInterface
 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;
 }
コード例 #10
0
ファイル: Lua.cs プロジェクト: CadeLaRen/BizHawk
	    /// <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;
      }
コード例 #11
0
ファイル: Rs232.cs プロジェクト: SoftSuite/ABB
 private static extern int WaitCommEvent(int hFile, EventMasks Mask, Overlapped lpOverlap);
コード例 #12
0
ファイル: Rs232.cs プロジェクト: sky7sea/MSDNSamples
 [DllImport("kernel32.dll")] private static extern int WaitCommEvent(int hFile, ref EventMasks Mask,
                                                                     ref OVERLAPPED lpOverlap);
コード例 #13
0
 public static int SetHook(ScriptState luaState, EventMasks mask, int count)
 {
     return(ScriptApi.SetHook(luaState, (int)mask, count));
 }