From b1c99be0d854931a38efda318a20cf9bce4abea8 Mon Sep 17 00:00:00 2001 From: Hartmut Seichter Date: Wed, 23 Jan 2019 09:06:05 +0100 Subject: [PATCH] adding missing file --- src/scripting/src/runtime_lua.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/scripting/src/runtime_lua.cpp diff --git a/src/scripting/src/runtime_lua.cpp b/src/scripting/src/runtime_lua.cpp new file mode 100644 index 0000000..ef0bcdb --- /dev/null +++ b/src/scripting/src/runtime_lua.cpp @@ -0,0 +1,22 @@ +#include "runtime_lua.hpp" + +namespace pw { + +PW_RUNTIME_LUA_USE(core) + +runtime_lua &runtime_lua::get() +{ + static runtime_lua instance; + return instance; +} + +void runtime_lua::add(const std::string &name, runtime_lua::register_function_t f) { + _register_function_list[name] = f; +} + +runtime_lua::runtime_lua() +{ +} + + +}