lua-users home
lua-l archive
Re: Override debug.info or bypass linedefined
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
] [
Date Index
] [
Thread Index
]
Subject
:
Re: Override debug.info or bypass linedefined
From
: Peng Zhicheng <pengzhicheng1986@
...
>
Date
: 2013年12月06日 10:07:01 +0800
于 2013年12月4日 13:51, vizouk 写道:
[
Hi is there any way to override a function and still get the result of: debug.getinfo(SPrint).linedefined == -1 ? I want to override an function but still bypass the check of debug.getinfo oterhwise or can i override debug.getinfo ? Regards -- View this message in context:
http://lua.2524044.n2.nabble.com/Override-debug-info-or-bypass-linedefined-tp7654914.html
Sent from the Lua-l mailing list archive at Nabble.com.
I guess you already had the idea that I would like to suggest:
When you replace the routine, store a map between the original one and the new one.
And hook the debug function too, in the way that it first looks up in the map to see if the
function being queried is hooked, and return the info accordingly.
References
:
Override debug.info or bypass linedefined
,
vizouk
Prev by Date:
Re: Converting strings to enum values (C API)
Next by Date:
Re: lua_Integer in Lua 5.3
Previous by thread:
Override debug.info or bypass linedefined
Next by thread:
slnunicode failed compilation
Index(es):
Date
Thread
AltStyle
によって変換されたページ
(->オリジナル)
/
アドレス:
モード:
デフォルト
音声ブラウザ
ルビ付き
配色反転
文字拡大
モバイル