summaryrefslogtreecommitdiffstats
path: root/source/cPlugin_NewLua.h
diff options
context:
space:
mode:
authorfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-22 14:24:29 +0200
committerfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-22 14:24:29 +0200
commit0da4f7eaa274e33065c5a9ec031af5d971112d66 (patch)
tree22321f1734ad8cc1d9a3a864e412f48a631d7184 /source/cPlugin_NewLua.h
parentChat history limit on the WebAdmin chat (diff)
downloadcuberite-0da4f7eaa274e33065c5a9ec031af5d971112d66.tar
cuberite-0da4f7eaa274e33065c5a9ec031af5d971112d66.tar.gz
cuberite-0da4f7eaa274e33065c5a9ec031af5d971112d66.tar.bz2
cuberite-0da4f7eaa274e33065c5a9ec031af5d971112d66.tar.lz
cuberite-0da4f7eaa274e33065c5a9ec031af5d971112d66.tar.xz
cuberite-0da4f7eaa274e33065c5a9ec031af5d971112d66.tar.zst
cuberite-0da4f7eaa274e33065c5a9ec031af5d971112d66.zip
Diffstat (limited to 'source/cPlugin_NewLua.h')
-rw-r--r--source/cPlugin_NewLua.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/cPlugin_NewLua.h b/source/cPlugin_NewLua.h
index 1d931530b..20b74b490 100644
--- a/source/cPlugin_NewLua.h
+++ b/source/cPlugin_NewLua.h
@@ -49,6 +49,8 @@ public: //tolua_export
lua_State* GetLuaState() { return m_LuaState; }
cWebPlugin_Lua* CreateWebPlugin(lua_State* a_LuaState); //tolua_export
+
+ cCriticalSection & GetCriticalSection() { return m_CriticalSection; }
private:
bool PushFunction( const char* a_FunctionName, bool a_bLogError = true );
bool CallFunction( int a_NumArgs, int a_NumResults, const char* a_FunctionName ); // a_FunctionName is only used for error messages, nothing else