697:2766f7b037ad | 698:16e6d7d87982 |
---|---|
19 #pragma once | 19 #pragma once |
20 | 20 |
21 #ifndef __GNUC__ | 21 #ifndef __GNUC__ |
22 # define __attribute__(X) | 22 # define __attribute__(X) |
23 #endif | 23 #endif |
24 | |
25 #define countof(A) ((int) (sizeof A / sizeof *A)) | |
24 | 26 |
25 // ============================================================================= | 27 // ============================================================================= |
26 // | 28 // |
27 #define PROPERTY(ACCESS, TYPE, READ, WRITE, WRITETYPE) \ | 29 #define PROPERTY(ACCESS, TYPE, READ, WRITE, WRITETYPE) \ |
28 private: \ | 30 private: \ |