Compiler directives give you fine‑grained control over the build process. Use #Pragma to toggle debug‑only code, profile performance hotspots, or conditionally compile for specific platforms (Desktop, Web, Mobile). Do you use any in your projects?
#Compiler #Programming #BuildOptimization
#pragma once and #ifndef do the same job. One is a compiler extension — widely supported but technically non-standard. The other is portable, verbose, and guaranteed by the spec.
Which you reach for says something about how you think about portability.
slashstar.store/blogs/code-c...
#cpp
Whoa I had no idea you could embed files into arrays with GCC using #pragma and #embed directives. I can directly embed the programs own current source code into the program when it compiles. This makes my bin2cpp program on GitHub redundant and obsolete.
So far I'm enjoying #C++ modules a lot. To me it is far more elegant than dealing with header files, #pragma, #ifdef, etc.
That said, it was no fun getting the compiler to work, I had to give up on macOS completely and move back to Linux (which is for the best).
so why were people riffing about `#pragma once` the other day
did a techbro do something silly
The real solution is to add #pragma comment lib to clang/gcc on linux ;-)
a table listing compiler support for #pragma once. only one compiler out of 22 does not support it. from https://en.wikipedia.org/wiki/Pragma_once
#pragma once is supported everywhere. the fact that this is still not in the official standard is evidence that they messed up because C++ modules still aren't ready
top of mkwcats discord server with the first channel reading #pragma-once
i think every discord server should have a #pragma once channel at the top
#pragma balls!
#pragma once stays on during sex
You can force a specific packing with pragma arguments, #pragma pack
Otherwise ye, Visual Studio has a visualiser somewhere to show struct size with packing...
4 ТА АВІАЦІЙНА БАЗА ПОРТУГАЛІЯ
aepiot.com/advanced-sea...
#PRAGMA СИСТЕМА МАШИННОГО ПЕРЕКЛАДУ
headlines-world.com/advanced-sea...
БІЛОРУСЬ НА ЗИМОВИХ ОЛІМПІЙСЬКИХ ІГРАХ 2006
multi-search-tag-explorer.allgraph.ro/advanced-sea...
aepiot.ro
"We don't need to do it this quarter just because some startup has to do an earnings call. We will do it if it helps us."
buff.ly/4QNLUx6 #ai #pragma
Various drawings of Pragma, a form of data-eating artificial intelligence in the form of a huge, beefy orc, from a few months ago. Top-left: Headshot of Pragma annoyed, thinking that he "needs more RAM..." Left-middle: Small sketch showing Pragma in a "pinball" form, and a headshot of Pragma "eating" some data (in the form of a 10 byte cinnamon roll) as he thinks "Mmm...! Tasty, but not filling enough!!". Bottom-left: Sketch of Pragma saying "Hmph!" as he pats his stomach. Rightmost: Backshot of Pragma standing with his fist clenched, as he looks back to see what's behind him. He's also wearing a pair of rather tight-fitting shorts with a jockstrap over them, a strange back tattoo that looks like an eye within a square with wings, and has one of those pair of "toe shoes" on his feet. Bottom-right: Headshot of Pragma shocked as his face is chubbed out, due to being over his current RAM limit.
A more recent drawing of Pragma, this time showing three drawings of him in a "ZIP-File Bodysuit". Leftmost: Pragma in his form-fitting "ZIP-File Bodysuit" with his backside towards the camera, and noticeably with more muscle and fat on him. He's looking back at the viewer with a series expression while a ZIP-folder is hovering in his left hand. Top-right: Pragma flexing his left arm, which is being contained with a closed zipper he's summoned over it. Bottom-right: Surprised as he's suddenly swelling up, his bodysuit stretching out from trying to contain it all.
Terabyter (with a ZIP File)
#art #oc #pragma #orc #data #muscle #fat #girth #weightgain #chub #inflation #bloat #bodysuit #rubber #latex #zip #backside #compression
#pragma disable_reality_check
#pragma omp counts(totally)
#pragma roll
Our team decades ago was using Visual/Age C++ and were just disappointed with how slow the collections felt.
We looked in their code and saw they'd used a metric ton of #pragma statements for everything??
We rewrote it in *plain code* and the performance more than doubled.
Dev libs are weird.
C Name: swis.f
C Purpose: Generalised SWI interface
C This file is automatically generated from Hdr:makefswis
#pragma free_format
INTEGER XOS_Bit
PARAMETER (XOS_Bit='20000'Z)
C These functions provide a generic method of calling RISC OS SWIs from
C Fortran.
Heading back into visual studio turned me into:
#pragma warning(disable:EVERYTHING)
#vstudio #programming #csharp
I think I found why Codecov was not respecting the ignored lines from coverage.py: github.com/codecov/code.... Using #pragma: no cover for now works! #testing #pytest #python #coverage #programming #opensource
#Love #MoreLove #Agape: #Unconditional #SelflessLove
#Eros #Passionate #Romantic #Desire
#Philia #Affectionate #Friendship
#Storge #Familial #Nurturing #Bond
#Pragma #Enduring #CommittedLove
#Ludus #Playful #Flirtatious
#Philautia #Healthy #SelfLove
#Mania #Obsessive #PossessiveLove #OneLove
cc65、以下の書き方で変数をゼロページに置いて使えるっぽい。
#pragma bss-name(push, "ZEROPAGE")
unsigned char x;
#pragma bss-name(pop)
これとインラインアセンブラを使ってチューニングしていこうかなと思います。cc65コンパイラ、あまり最適化してくれないし…😓
Had a great time at Pragma New York 2025 by ETHGlobal
— amazing to connect with industry leaders from
@ethereum.foundation, @uniswap.org, and many more.
Loved chatting with everyone during the rooftop party! 🌇✨
#eth #ethnyc #nyc #web3 #pragma
#pragma warn Impossible
Here’s another roundup of Swift/iOS conferences in Europe later this year. I’m planning to be at SwiftLeeds and #Pragma.
Inlay Hints in ReSharper for Visual Studio Code
ReSharper for @vscode.dev make sense of your code at a glance 😏
🏷️ Argument names
➰ Lambda parameter types
🕵️ Anonymous and tuple types
📊 Per-line method calls
⚠️ #pragma warning insights
Visual cues. Zero guesswork. 🙌
jb.gg/rsrp-in-vsc
Last today a new brand with a unique approach. #Pragma focuses on sustainability and transparency. You can even find where the spring bars are made. Several very limited editions of the Perseverance, all more than $40,000. Would love to see one in person.
pragma-watches.ch/collection/p...