lua-users home
lua-l archive

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


The definition of

    __inline int l_lrint (double flt)

in luaconf.h leads to an error in Borland CBuilder 6:

    "Inline assembly not allowed in inline and template functions"

Also the warning pragma seems VC specific. Check for _MSC_VER (VC) or __BORLANDC__ (Borland). Changing "__inline" into "static" is a fix, I didn't check if the compiler inlines the code anyway.

Why all the fuss over this rint function btw? Will an int cast not do fine? (And lrint returns a long int).


--
Wim