diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-07-03 18:31:19 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-07-03 18:31:19 +1000 |
commit | 0d266bebe12f01e0035619ef927430e0c1afaf98 (patch) | |
tree | 2b6a08ce4c0222797dd62ec12725899b624e9fdc /source/core/StarLua.cpp | |
parent | deb96742e020be5e83314a5a28ddba3c96df6f6e (diff) |
Add shared table
Diffstat (limited to 'source/core/StarLua.cpp')
-rw-r--r-- | source/core/StarLua.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/core/StarLua.cpp b/source/core/StarLua.cpp index 3b04fc8..4e89097 100644 --- a/source/core/StarLua.cpp +++ b/source/core/StarLua.cpp @@ -366,6 +366,8 @@ LuaEnginePtr LuaEngine::create(bool safe) { self->setGlobal("jremove", self->createFunction(&LuaDetail::jcontRemove)); self->setGlobal("jsize", self->createFunction(&LuaDetail::jcontSize)); self->setGlobal("jresize", self->createFunction(&LuaDetail::jcontResize)); + + self->setGlobal("shared", self->createTable()); return self; } |