verify struct sizes.

This commit is contained in:
Kelvin Sherlock 2019-12-14 16:15:09 -05:00
parent d4ba40ca34
commit 50822a7dea

View File

@ -63,6 +63,9 @@ struct omf_express_header {
#pragma pack(pop)
static_assert(sizeof(omf_header) == 44, "OMF Header not packed");
static_assert(sizeof(omf_express_header) == 48, "OMF Express Header not packed");
void push(std::vector<uint8_t> &v, uint8_t x) {
v.push_back(x);
}