What are pragmas and what are they good for?

Q

What are pragmas and what are they good for?

✍: Guest

A

The #pragma directive provides a single, well-defined ``escape hatch'' which can be used for all sorts of (nonportable) implementation-specific controls and extensions: source listing control, structure packing, warning suppression (like lint's old /* NOTREACHED */ comments), etc.

2015-12-11, 1118👍, 0💬