Raytracer
Loading...
Searching...
No Matches
Common.hpp
1#ifndef __COMMON_HPP__
2#define __COMMON_HPP__
3
4#define GET_SET(type, name) \
5 const type &name() const \
6 { \
7 return _##name; \
8 } \
9 type &name() \
10 { \
11 return _##name; \
12 } \
13 void name(type value) \
14 { \
15 _##name = value; \
16 }
17
18#endif /* __COMMON_HPP__ */