Pārlūkot izejas kodu

Make sure StateWrapper calls the correct functions

In some cases, methods would try to call themselves instead of functions
in the luwra namespace.
Ole 10 gadi atpakaļ
vecāks
revīzija
08c587e2e1
1 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  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);
 	}
 
 	/**