justincormack / ljsyscall

LuaJIT Unix syscall FFI
http://www.myriabit.com/ljsyscall/
Other
441 stars 54 forks source link

tonumber method for ioctl #131

Closed justincormack closed 10 years ago

justincormack commented 10 years ago

Currently ctests have for k, v in pairs(c.IOCTL) do if type(v) == "table" then c.IOCTL[k] = v.number end end when tonumber would be nicer; S.ioctl could use too.

justincormack commented 10 years ago

Oh yes, Lua doesnt support __tonumber metamethods. Yet.