adding missing file
This commit is contained in:
parent
61f8e6c071
commit
b1c99be0d8
1 changed files with 22 additions and 0 deletions
22
src/scripting/src/runtime_lua.cpp
Normal file
22
src/scripting/src/runtime_lua.cpp
Normal file
|
@ -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()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue