Platform Detection

lua-users home
wiki

Difference (from prior major revision) (no other diffs)

Added: 6a7
* [The LuaJIT FFI] provides ffi.os, ffi.arch and ffi.abi().

Here's some references on detecting the OS platform from Lua.

Note: some things can be tricky like Cygwin, which is like a *nix emulator on Windows. For portability purposes, Cygwin is mainly considered *nix, but it has some Windows features.


RecentChanges · preferences
edit · history
Last edited February 22, 2011 9:10 am GMT (diff)