[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: basic tolua
- From: "John Belmonte" <jvb@...>
- Date: Tue, 27 Jun 2000 12:11:35 +0900
From: "Waldemar Celes" <celes@tecgraf.puc-rio.br>
> You are right, it's really a bug. I'll fix it for the next version.
> You can work around omitting the "int" after the "unsigned".
That workaround doesn't help for char, long, etc. A better workaround is to
use typedef such as:
typedef unsigned char u_char;
>
> > Secondly, how do I create an instance of my structure from
> > Lua?
> >
>
> You can implement a C creator and include it in the .pkg file:
>
> abc* create (void);
>
> For C++, it would be enough to write:
>
> var = abc:new ()
>
> -- waldemar
>