Changeset 22885 in vbox for trunk/src/VBox/Devices/testcase/tstDeviceStructSizeGC.cpp
- Timestamp:
- Sep 9, 2009 9:58:49 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/testcase/tstDeviceStructSizeGC.cpp
r22839 r22885 94 94 #include <stdio.h> 95 95 96 #define GEN_CHECK_SIZE(s) printf(" CHECK_SIZE(%s, %d);\n", #s, (int)sizeof(s))97 #define GEN_CHECK_OFF(s, m) printf(" CHECK_OFF(%s, %d, %s);\n", #s, (int)RT_OFFSETOF(s, m), #m)98 #define GEN_CHECK_PADDING(s, m ) printf(" CHECK_PADDING(%s, %s);\n", #s, #m)96 #define GEN_CHECK_SIZE(s) printf(" CHECK_SIZE(%s, %d);\n", #s, (int)sizeof(s)) 97 #define GEN_CHECK_OFF(s, m) printf(" CHECK_OFF(%s, %d, %s);\n", #s, (int)RT_OFFSETOF(s, m), #m) 98 #define GEN_CHECK_PADDING(s, m, a) printf(" CHECK_PADDING(%s, %s, %u);\n", #s, #m, (a)) 99 99 100 100 int main() … … 141 141 GEN_CHECK_OFF(PCIDEVICE, Int.s.pfnBridgeConfigRead); 142 142 GEN_CHECK_OFF(PCIDEVICE, Int.s.pfnBridgeConfigWrite); 143 GEN_CHECK_PADDING(PCIDEVICE, Int );143 GEN_CHECK_PADDING(PCIDEVICE, Int, 8); 144 144 GEN_CHECK_SIZE(PIIX3State); 145 145 GEN_CHECK_SIZE(PCIBUS);
Note:
See TracChangeset
for help on using the changeset viewer.