mirror of
https://github.com/allankoechke/raylib-cpp.git
synced 2026-12-01 09:24:33 +00:00
Use include "raylib-cpp.hpp" instead
This commit is contained in:
17
include/raylib-cpp-utils.hpp
Normal file
17
include/raylib-cpp-utils.hpp
Normal 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
|
||||
Reference in New Issue
Block a user