Slide 14
Slide 14 text
LuaJIT 近期重點
Qualcomm 贊助 ARM Port!
Foreign Function Interface!
local ffi = require("ffi")
ffi.cdef[[
typedef struct { float x,y,z; } SVertex;
int MessageBoxA(void*,char const*,char const*,int);
]]
ffi.C.MessageBoxA(nil, "Hello world!", "Test", 0)
local img = ffi.new("SVertex[?]", 100)
img[0].x = 123