lua-users home
lua-l archive

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


In summary I cannot find a valid way to use the braced sybtax.

DB

On 5/20/05, David Burgess <dburgess@gmail.com> wrote:
> Also with VC6
> 
> #define lua_number2int(i,d)     \
>         __asm fld d \
>         __asm fistp i
> 
> Works for me.
> 
> DB
> 
> On 5/20/05, Roberto Ierusalimschy <roberto@inf.puc-rio.br> wrote:
> > About the bug in the definition of lua_number2int for Windows, can
> > someone test this alternative definition (luaconf.h)?
> >
> > 439,441c439,441
> > < #define lua_number2int(i,d)   \
> > <       __asm fld d; \
> > <       __asm fistp i;
> > ---
> > > #define lua_number2int(i,d) __asm { fld d \
> > >                                   fistp i \
> > >                                 }
> >
> > Thanks,
> >
> > -- Roberto
> >
>