Procházet zdrojové kódy

Make sure StateWrapper calls the correct functions

In some cases, methods would try to call themselves instead of functions
in the luwra namespace.
Ole před 10 roky
rodič
revize
08c587e2e1
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  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);
 	}
 
 	/**