浏览代码

Make sure StateWrapper calls the correct functions

In some cases, methods would try to call themselves instead of functions
in the luwra namespace.
Ole 9 年之前
父节点
当前提交
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);
 	}
 
 	/**