lua-users home
lua-l archive

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


What's the easiest way to register Lua C interfaces/libraries into a table instead of into globals? For instance, when calling:

    mathlib_open ();

I'd like the math functions to be put into a global table called "math". 
(Or maybe under the path system.math, etc)

Steve