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 ++++++++++++++++++ src/plugin-luapsx.cc | 13 +++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 src/plugin-luacd.cc create mode 100644 src/plugin-luapsx.cc (limited to 'src') 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); +} + +} diff --git a/src/plugin-luapsx.cc b/src/plugin-luapsx.cc new file mode 100644 index 0000000..e1f820c --- /dev/null +++ b/src/plugin-luapsx.cc @@ -0,0 +1,13 @@ +#include +#include + +extern "C" { + +void init_plugin(Lua * L) { + static bool done = false; + if (done) return; + done = true; + Luapsx::pushstatics(L); +} + +} -- cgit v1.2.3