lua-users home
lua-l archive

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


On 8/3/07, Ariel Manzur <puntob@gmail.com> wrote:
If it's a macro function, you can just add it as a regular function on
your .pkg, like this:

void LIB_LOG(int level, char* message);

(or maybe use the enum type for 'level', the compiler might complain).

Great. I will try this.

There are also several ways to add extra stuff to your bindings,
depending on what you're adding (and what version/flavor of tolua
you're running).

I am using toLua (http://www.tecgraf.puc-rio.br/~celes/tolua/ ) version 5.1, not toLua++. Is there a way to add straight helper functions inline? Can I get examples? I read the documentation and didn't mention anything about helper functions. Can you give a couple of examples of how to add extra stuff?

Thanks for your help.
--
Regards,
Ryan
RJP Computing