Parcourir la Source

Rename GlobalAccessor::get to GlobalAccessor::read

This makes the interface a bit more like Reference's interface.
Ole il y a 9 ans
Parent
commit
99e602b7a8
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 3 3
      lib/luwra/state.hpp

+ 3 - 3
lib/luwra/state.hpp

@@ -46,16 +46,16 @@ struct GlobalAccessor {
 	 * Retrieve the associated value.
 	 */
 	template <typename V> inline
-	V get() {
+	V read() {
 		return getGlobal<V>(state, key);
 	}
 
 	/**
-	 * Shortcut for `get()`
+	 * Shortcut for `read()`
 	 */
 	template <typename V> inline
 	operator V() {
-		return get<V>();
+		return read<V>();
 	}
 
 	/**