1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#include <BLua.h> #include <luacd.h> static void _init_plugin(Lua * L) { static bool done = false; if (done) return; done = true; CD_PUSHSTATICS(L); } extern "C" { void luacd_init(Lua * L) { _init_plugin(L); } }