VariableRef VmState::getVariable(const std::string& name) { auto iter = variables.find(name); if (iter != variables.end()) { return iter->second; } return VariableRef(); }
lua_simple::VariableRef VariableRef::getVariableByKey( const mkString& key ) { return VariableRef(key, m_ownerContext, this); }
lua_simple::VariableRef LuaSimpleContext::getGlobalVariable( const char* name ) { return VariableRef(name, this); }