lua-users home
lua-l archive

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


> lua_number2int() was an inline function in the original patch
> from David Burgess (which is perfectly ok -- the #ifdef's test
> for MSVC).

That code in the original patch appears in several sites. It is not
clear who is the original author, so we prefer not to use it.


> And it used a combined _asm statement. I guess MSVC reorders
> individual _asm instructions and this breaks it.

The manual [1] says "Alternatively, you can put __asm in front of each
assembly instruction:" But then, who said we can trust manuals...

[1] (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclang/html/_langref___asm.asp)

-- Roberto