12 lines
346 B
C++
12 lines
346 B
C++
|
|
#pragma once
|
||
|
|
|
||
|
|
#define GET_REF(attribute, name) \
|
||
|
|
inline const typeof(attribute)& name() const { return attribute; }
|
||
|
|
|
||
|
|
#define GET_MUT_REF(attribute, name) \
|
||
|
|
GET_REF(attribute, name) \
|
||
|
|
inline typeof(attribute)& name() { return attribute; }
|
||
|
|
|
||
|
|
#define GET(attribute, name) \
|
||
|
|
inline typeof(attribute) name() const { return attribute; }
|