What code have you written with #pragma you found useful?
Posted
by Xavier Ho
on Stack Overflow
See other posts from Stack Overflow
or by Xavier Ho
Published on 2010-04-24T06:52:11Z
Indexed on
2010/04/24
7:13 UTC
Read the original article
Hit count: 426
I've never understood the need of #pragma once
when #ifndef #define #endif
always works.
I've seen the usage of #pragma comment
to link with other files , but setting up the compiler settings was easier with an IDE.
What are some other usages of #pragma
that is useful, but not widely known?
Edit:
I'm not just after a list of #pragma directives. Perhaps I should rephrase this question a bit more:
What code have you written with #pragma
you found useful?
© Stack Overflow or respective owner