local ffi = jit and require('ffi') or require('cffi')
local s = "hello world"
print(ffi.string(s)) --> expected: "hello world", get: bad argument #1 to 'string' (cannot convert 'string' to 'char const *')
LuaJIT FFI allows passing a string argument through ffi.string().
LuaJIT FFI allows passing a string argument through
ffi.string()
.