> > You can write your definitions in a file, say mydefs.h, and then > > build Lua with -DLUA_USER_H='"mydefs.h"'. > > I can't believe I missed this feature all these years. For the record, support for LUA_USER_H was introduced in Lua 5.0.