Преглед изворни кода

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 година
родитељ
комит
08c587e2e1
1 измењених фајлова са 3 додато и 3 уклоњено
  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);
 	}
 
 	/**