#ifndef INTERFACE_H_INCLUDED
#define INTERFACE_H_INCLUDED
#include <iostream>
#include <string>
using namespace std;
// tolua_begin
class Ss
{
public:
Ss()
{
i=0;
a='a';
b=100.8;
str="";
}
int i;
char a;
double b;
string str;
char chararray[10];
};
int printHi();
// tolua_end
#endif // INTERFACE_H_INCLUDED
In Lua:
> s=Ss()
> =s.str
> s.str='a\0b'
> =string.len(s.str)
1
>
The length of s.str should be 3.
On Mon, Feb 16, 2009 at 09:47, Ariel Manzur
<puntob@gmail.com> wrote:
Hi.
I'm releasing tolua++1.0.93. Mostly bugfixes that accumulated on the
SVN over the years.
- Build process bootstraps.
- Added hooks to handle custom types.
- Added hooks to handle exceptions.
- Fixed issues with newer GCC compilers.
- Changed to MIT license. See COPYRIGHT file for details.
The main reason for the release is the license change, to the MIT
license (same as Lua).
http://www.codenix.com/~tolua/
http://www.codenix.com/~tolua/tolua++-1.0.93.tar.bz2
Let me know of any bugs, etc.
Ariel.
--
Regards,
Linker Lin
linker.m.lin@gmail.com