lua-users home
lua-l archive

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


Jan Kratochvíl wrote:
Well at least in one case i found solution. It is the 3) and it is the one discussed here today. lua_number2int isn't working for me because of DirectX. Switching to floats and redefining lua_number2int solves it.

I guess the 'right' solution is telling DirectX to leave doubles
as doubles.

I wonder if there's a run-time test for this mishap?  Something
like:

if tostring(bignumber) ~= "bignumber" then
	error("DX screwed us again.");
end

--adam