summaryrefslogtreecommitdiff
path: root/indra/llcommon/lua_function.h
diff options
context:
space:
mode:
Diffstat (limited to 'indra/llcommon/lua_function.h')
-rw-r--r--indra/llcommon/lua_function.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/indra/llcommon/lua_function.h b/indra/llcommon/lua_function.h
index 3129b5eaca..b3a0bb0d7e 100644
--- a/indra/llcommon/lua_function.h
+++ b/indra/llcommon/lua_function.h
@@ -131,11 +131,13 @@ public:
static lua_CFunction get(const std::string& key);
+protected:
using Registry = std::map<std::string, std::pair<lua_CFunction, std::string>>;
- static const Registry& getRegistered() { return getRegistry(); }
+ using Lookup = std::map<lua_CFunction, std::string>;
+ static std::pair<const Registry&, const Lookup&> getRState() { return getState(); }
private:
- static Registry& getRegistry();
+ static std::pair<Registry&, Lookup&> getState();
};
/**