Files
Towards/modules/network/include/common.hpp
Martin Slachta a04f0dc262 initial
2026-07-18 14:31:15 +02:00

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; }