initial
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
#pragma once
|
||||
|
||||
#if _WIN32
|
||||
#define GET(slot, name) const inline decltype(slot) name() const { return slot; }
|
||||
#define REF(slot, name) const inline decltype(slot)& name() const { return slot; }
|
||||
#else
|
||||
#define GET(slot, name) [[nodiscard("Do not discard result of a getter! Use the result!")]] \
|
||||
const inline __typeof(slot) name() const { return slot; }
|
||||
#define REF(slot, name) [[nodiscard("Do not discard result of a getter! Use the result!")]] \
|
||||
const inline __typeof(slot)& name() const { return slot; }
|
||||
#endif
|
||||
Reference in New Issue
Block a user