roberts


Group: Members
Posts: 4983
Joined: Oct. 2003 |
 |
Posted: May 16 2008,16:09 |
 |
mikshaw wrote:Quote | I wonder if it might be easier to do a check for fltk in the LUA_INIT file before running any fltk commands. This assumes that -lfltk is being used as part of the interpreter as mentioned earlier, and that -lfltk loads fltk before LUA_INIT is read, neither of which I know at this point. In any case, if it works, I think either method could be used. I only mention sticking with LUA_INIT because it would allow you to skip running dofile in every fltk-enabled script. |
I have found the best place for such dofile, in a single location, is /usr/local/share/lua/5.1/fltk.lua, the inititalization for the murgaLua fltk bindings. This way the non-gui lua scripts are not penalized with any extra processing to determine to further process fltk only commands.
|