Explorar el Código

Make sure StateWrapper calls the correct functions

In some cases, methods would try to call themselves instead of functions
in the luwra namespace.
Ole hace 10 años
padre
commit
08c587e2e1
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      lib/luwra/state.hpp

+ 3 - 3
lib/luwra/state.hpp

@@ -99,7 +99,7 @@ struct StateWrapper {
 	 */
 	template <typename V> inline
 	V getGlobal(const std::string& key) const {
-		return getGlobal<V>(state, key);
+		return ::luwra::getGlobal<V>(state, key);
 	}
 
 	/**
@@ -107,7 +107,7 @@ struct StateWrapper {
 	 */
 	template <typename V> inline
 	void setGlobal(const std::string& key, V value) const {
-		setGlobal(state, key, value);
+		::luwra::setGlobal(state, key, value);
 	}
 
 	/**
@@ -127,7 +127,7 @@ struct StateWrapper {
 		const MemberMap& methods = MemberMap(),
 		const MemberMap& meta_methods = MemberMap()
 	) {
-		registerUserType<T>(state, ctor_name, methods, meta_methods);
+		::luwra::registerUserType<T>(state, ctor_name, methods, meta_methods);
 	}
 
 	/**