src/macros.h

changeset 795
195fa1fff9c3
parent 762
d259256e1394
child 823
1a2f593f0c02
equal deleted inserted replaced
794:c254ddc6618b 795:195fa1fff9c3
57 m_##READ = a; \ 57 m_##READ = a; \
58 } 58 }
59 59
60 #define PROPERTY_CUSTOM_WRITE(READ) \ 60 #define PROPERTY_CUSTOM_WRITE(READ) \
61 ; 61 ;
62
63 #define readAccess(A) inline decltype(_##A) A() const { return _##A; }
64 #define writeAccess(A,B) inline void B (decltype(_##A) const& a) const { _##A = a; }
62 65
63 // ============================================================================= 66 // =============================================================================
64 // 67 //
65 #define elif(A) else if (A) 68 #define elif(A) else if (A)
66 69

mercurial