lua-users home
lua-l archive

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

> PS. I did not show the mods to lua.c, luac.c and lauxlib.h which were 
> all one line changes for 'main' 

There is no need to edit lua.c and lua.c then. Just say something like
this in luaconf.h:

#ifdef lua_c
#define main my_lua_main

#ifdef luac_c
#define main my_luac_main

The Lua modules define these kind of symbols exactly to cater for
customizations in luaconf.h.