try fixing lua "buffer overflow" stack corruption crash when GC occurs while calling a cfunction

This commit is contained in:
zeromus 2012-06-11 22:15:49 +00:00
parent b240c675ce
commit c823d6b46a
3 changed files with 2 additions and 0 deletions

Binary file not shown.

Binary file not shown.

View File

@ -127,9 +127,11 @@ namespace Lua511
/*
* Delegate for functions passed to Lua as function pointers
*/
[System::Runtime::InteropServices::UnmanagedFunctionPointer(CallingConvention::Cdecl)]
public delegate int LuaCSFunction(IntPtr luaState);
// delegate for lua debug hook callback (by Reinhard Ostermeier)
[System::Runtime::InteropServices::UnmanagedFunctionPointer(CallingConvention::Cdecl)]
public delegate void LuaHookFunction(IntPtr luaState, IntPtr luaDebug);