From 76aa3260f43ef0d74bbfa04982b620961af61eab Mon Sep 17 00:00:00 2001 From: Nicolas Noble Date: Mon, 16 Mar 2009 14:05:47 -0700 Subject: Initial commit. --- src/plugin-luacd.cc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/plugin-luacd.cc (limited to 'src/plugin-luacd.cc') diff --git a/src/plugin-luacd.cc b/src/plugin-luacd.cc new file mode 100644 index 0000000..5b10abc --- /dev/null +++ b/src/plugin-luacd.cc @@ -0,0 +1,18 @@ +#include +#include + +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); +} + +} -- cgit v1.2.3