Quantcast
Channel: Intel® C++-Compiler
Viewing all articles
Browse latest Browse all 1665

How to detect current Zp or pragma pack?

$
0
0

Is there a way to determine current packing option is 8 or 16? I mean some code like:

struct CHK
{
    uint8_t first;
    uintmax_t large;
};

u = offsetof( CHK, large );

or some predefined macro like __LINE__?

Thanks!


Viewing all articles
Browse latest Browse all 1665

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>