MCPcopy Create free account
hub / github.com/SOUI2/soui / get

Method get

components/ScriptModule-LUA/lua_tinker/lua_tinker.h:906–919  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

904
905 template<typename T>
906 T get(const char* name)
907 {
908 if(validate())
909 {
910 lua_pushstring(m_L, name);
911 lua_gettable(m_L, m_index);
912 }
913 else
914 {
915 lua_pushnil(m_L);
916 }
917
918 return pop<T>(m_L);
919 }
920
921 lua_State* m_L;
922 int m_index;

Callers

nothing calls this directly

Calls 4

lua_pushstringFunction · 0.85
lua_gettableFunction · 0.85
lua_pushnilFunction · 0.85
validateFunction · 0.50

Tested by

no test coverage detected