4 ms·
Forget swig. Have you seen luajit new ffi library? If you think Lua's C interface is simple, you're gonna be blown out of your mind with luajit's: local ffi =
by diego_moita 16y ago
Forget swig. Have you seen luajit new ffi library? If you think Lua's C interface is simple, you're gonna be blown out of your mind with luajit's:
local ffi = require("ffi")
ffi.cdef[[
int printf(const char *fmt, ...);
]]
ffi.C.printf("Hello %s!", "world")
- phoyd 16y agoOw, this is cool. Here's the mouth watering announcement: http://article.gmane.org/gmane.comp.lang.lua.general/74072 http://article.gmane.org/gmane.comp.lang.lua.general/74072