Use include "raylib-cpp.hpp" instead

This commit is contained in:
Rob Loach
2020-04-26 13:53:43 -04:00
parent 390b361725
commit 21533b6a7d
56 changed files with 165 additions and 165 deletions

View File

@@ -0,0 +1,17 @@
#ifndef RAYLIB_CPP_UTILS_HPP_
#define RAYLIB_CPP_UTILS_HPP_
#ifndef GETTERSETTER
/**
* A utility to build get and set methods on top of a property.
*
* @param type The type of the property.
* @param method The human-readable name for the method.
* @param name The machine-readable name of the property.
*/
#define GETTERSETTER(type, method, name) \
inline type Get##method() { return name; } \
inline void Set##method(type value) { name = value; }
#endif
#endif