[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: toLua : Way to get around using std::strings with toLua
- From: "Ariel Manzur" <puntob@...>
- Date: Tue, 7 Aug 2007 18:46:18 -0300
it's not that hard to add a custom basic type to tolua, you have to
edit basic.lua and add a new entries on the _basic and _basic_ctype
arrays (see the other types as an example). then, you have to provide
the functions tolua_to<type>, tolua_is<type> and tolua_push<type>,
where <type> is whatever you added on _basic. Check the tolua output
code to see how it uses them.
On 8/6/07, RJP Computing <firstname.lastname@example.org> wrote:
> Is there a way to work with functions that take or return std::strings? I
> know that toLua++ supports them, but I am trying to make this version work.
> RJP Computing