lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi.

I was looking for a way to do stackdumps from within C/C++ - I couldn't find anything that also prints tables.

That's why I did this small helper header file: https://github.com/mgerhardy/lua_stackdump

Feedback is more than welcome. Pull requests, too ;). I'm quite new to lua, so please let me know if you can find anything wrong. There are also a few TODO comments included - if someone could help me to solve them... please do

Looks like you're new to C/C++ as well... (SCNR).  It is not so common to put code in .h files.  Also, passing around the printing function, is that really needed?

And, overuse of brackets...  And why inline?

Other than that, nice that you put it on guthub.