Add shared table
This commit is contained in:
parent
deb96742e0
commit
0d266bebe1
@ -366,6 +366,8 @@ LuaEnginePtr LuaEngine::create(bool safe) {
|
|||||||
self->setGlobal("jremove", self->createFunction(&LuaDetail::jcontRemove));
|
self->setGlobal("jremove", self->createFunction(&LuaDetail::jcontRemove));
|
||||||
self->setGlobal("jsize", self->createFunction(&LuaDetail::jcontSize));
|
self->setGlobal("jsize", self->createFunction(&LuaDetail::jcontSize));
|
||||||
self->setGlobal("jresize", self->createFunction(&LuaDetail::jcontResize));
|
self->setGlobal("jresize", self->createFunction(&LuaDetail::jcontResize));
|
||||||
|
|
||||||
|
self->setGlobal("shared", self->createTable());
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user