[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Calling C++ class methods from lua ?
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 14 Jun 2000 11:09:07 -0300 (EST)
>From [email protected] Wed Jun 14 10:50:31 2000
>From: Ville Sulko <[email protected]>
>what would be the best method for accessing C++ objects'
>methods from the lua code? Do I have to pass the objects this-pointer
>to the lua code as userdata and then write static wrappers in the C++
>class which take the userdata as an argument and then call the
>method of the given object (with parsed as given)?
tolua does this for you. see http://www.tecgraf.puc-rio.br/~celes/tolua/
--lhf