summaryrefslogtreecommitdiff
path: root/src/plugin-luacd.cc
diff options
context:
space:
mode:
authorNicolas Noble <nnoble@blizzard.com>2009-03-16 14:05:47 -0700
committerNicolas Noble <nnoble@blizzard.com>2009-03-16 14:05:47 -0700
commit76aa3260f43ef0d74bbfa04982b620961af61eab (patch)
treeaccd626d62b73398c05cda04f407d351d50d72a8 /src/plugin-luacd.cc
Initial commit.
Diffstat (limited to 'src/plugin-luacd.cc')
-rw-r--r--src/plugin-luacd.cc18
1 files changed, 18 insertions, 0 deletions
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 <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);
+}
+
+}