Skip to content

Instantly share code, notes, and snippets.

View cipri-tom's full-sized avatar

Ciprian Tomoiaga cipri-tom

View GitHub Profile
local function printf(s, ...)
io.write(s:format(...))
end
local ffi = require("ffi")
ffi.cdef[[
typedef void (*cb)(void);
void set_v(int n, void (*)(void ));
void set_i(int n, void (*)(int ));
void set_d(int n, void (*)(double));