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

Method set

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

Source from the content-addressed store, hash-verified

893
894 template<typename T>
895 void set(const char* name, T object)
896 {
897 if(validate())
898 {
899 lua_pushstring(m_L, name);
900 push(m_L, object);
901 lua_settable(m_L, m_index);
902 }
903 }
904
905 template<typename T>
906 T get(const char* name)

Callers

nothing calls this directly

Calls 4

lua_pushstringFunction · 0.85
pushFunction · 0.85
lua_settableFunction · 0.85
validateFunction · 0.50

Tested by

no test coverage detected