debug API extension

18 views
Skip to first unread message

eugeny gladkih

unread,
Nov 28, 2025, 1:03:24 PM (yesterday) Nov 28
to lu...@googlegroups.com
Hi,

that’s ugly code, isn’t it?

… format_caller( lua_State *L, lua_Debug *ar ) {
lua_getinfo( L, "nSl", ar );

const bool local = !strcmp( "local", ar->namewhat );;
const bool main = !strcmp( "main", ar->what );

...

but what about to add a new field into lua_Debug structure holding bit mask describing ‘what'?

--
Yours sincerely, Eugeny.


Reply all
Reply to author
Forward
0 new messages