ROVLib2
RISCOSC++applicationdevelopmentlibrary
asserts.cpp
1 #include "wimp_menu.h"
2 #include "wimp_window.h"
3 
4 static_assert(sizeof(int) == 4, "int must be 4 bytes long");
5 static_assert(sizeof(void*) == 4, "void* must be 4 bytes long");
6 
7 static_assert(sizeof(tLocation) == 8, "tLocation must be 8 bytes long");
8 
9 static_assert(sizeof(sIconFlags) == 4, "sIconFlags must be 4 bytes long");
10 
11 static_assert(sizeof(sWindowFlags) == 4, "sWindowFlags must be 4 bytes long");
12 static_assert(sizeof(tWindowCreateBlock) == 88, "tWindowCreateBlock must be 88 bytes long");
13 
14 static_assert(sizeof(tMenuItem) == 24, "tMenuItem must be 24 bytes long");
15 static_assert(sizeof(sMenuFlags) == 4, "sMenuFlags must be 4 bytes long");
16 static_assert(sizeof(tMenu) == 28, "tMenu must be 28 bytes long");