This is ctrace, a tool to help trace Lua API calls.

In your C code that you want to trace, change lua.h to ctrace.h,
add ctrace.c and ctrace.h to your build, and then rebuild your code.
A trace of Lua API calls will appear in stdout when you run your program.
Make sure to use ctrace.c and ctrace.h corresponding to your version of Lua.

The Lua program ctrace.lua in reads lua.h and outputs ctrace.c and ctrace.h.
Feel free to adapt ctrace.lua to your needs. If you need to recreate ctrace.c
and ctrace.h, do
	lua ctrace.lua < lua.h
Make sure to use lua.h corresponding to your version of Lua.

For the latest version of ctrace, see
	https://www.tecgraf.puc-rio.br/~lhf/ftp/lua/#ctrace

This code is hereby placed in the public domain and also under the MIT license.
Please send comments, suggestions, and bug reports to lhf@tecgraf.puc-rio.br .
