Unverified Commit 7a660cb1 authored by Mohamadreza Nakhleh's avatar Mohamadreza Nakhleh Committed by GitHub
Browse files

Set debug hook fix (#499)

* (fix) SetDebugHook returns -1 anyway

* (fix) typo
parent ded4dc5c
...@@ -944,6 +944,7 @@ namespace NLua ...@@ -944,6 +944,7 @@ namespace NLua
{ {
_hookCallback = DebugHookCallback; _hookCallback = DebugHookCallback;
_luaState.SetHook(_hookCallback, mask, count); _luaState.SetHook(_hookCallback, mask, count);
return 0;
} }
return -1; return -1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment