eugeny gladkih
unread,Nov 28, 2025, 1:03:24 PM (yesterday) Nov 28Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.