summaryrefslogtreecommitdiff
path: root/Source/3rdParty/Luax/luax_runtime.cpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-03-15 08:58:10 +0800
committerchai <chaifix@163.com>2019-03-15 08:58:10 +0800
commit95d27af75eb2aff8020e073eff8dfeb074b5bba6 (patch)
treecda1aee33f94a871d5f5cd81e108497e18655662 /Source/3rdParty/Luax/luax_runtime.cpp
parent08997c7768f7323fceaa27411a660cd23fe0dca6 (diff)
*luax
Diffstat (limited to 'Source/3rdParty/Luax/luax_runtime.cpp')
-rw-r--r--Source/3rdParty/Luax/luax_runtime.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/3rdParty/Luax/luax_runtime.cpp b/Source/3rdParty/Luax/luax_runtime.cpp
index 3903d9c..47b20cb 100644
--- a/Source/3rdParty/Luax/luax_runtime.cpp
+++ b/Source/3rdParty/Luax/luax_runtime.cpp
@@ -25,10 +25,12 @@ namespace Luax
{
lua_State* L = lua_open();
assert(L);
- //
+
+ // 1.
mContexts.insert(pair<lua_State*, Context>(L, Context(L)));
- // ʼcontext
+ // 2. ʼcontext
(*this)[L].Setup();
+
return L;
}