#ifdef
I believe its from the Left 4 Dead 2 partner depot, mainly because some of the base classes have L4D code baked in them without an ifdef wrapped around them.
September 26, 2026 at 10:19 AM
if i have to write another `#ifdef WIN32` i am going to commit war crimes
April 21, 2025 at 11:53 PM
Windows is so miserable to develop for I've no idea how people can say this is better than anything else

i should not have to ifdef _WIN32 so many times in one project just because a certain somepony at microsoft decided that conforming to POSIX was cringe
February 10, 2025 at 12:34 AM
released ifdef 0.4.1 featuring `ThisBuild / ifDefDeclarations` support
eed3si9n.com/ifdef-0.4.1 #Scala
ifdef 0.4.1 · eed3si9n
eed3si9n.com
April 20, 2025 at 6:43 AM
DUDE VALVE'S TOGL HAS THIS FUCKING IFDEF THAT JUST THROWS A COMPILER ERROR WITH THE TEXT "sorry man" IF YOU'RE NOT ON WINDOWS
January 13, 2025 at 3:37 PM
released ifdef 0.4.0, a Scala compiler plugin that implements conditional compilation in #Scala

ifdef 0.4.0 features
- helper sbt plugin cross published to sbt 1.x and 2.0.0-M3
- typo fix of the sbt key name `ifDefDeclarations`
eed3si9n.com/ifdef-0.4.0
ifdef 0.4.0 · eed3si9n
eed3si9n.com
December 31, 2024 at 6:47 AM
#ifdef CONSENT_TO_WINDOWS_H
#include
#endif
at least put a guard smh
March 3, 2026 at 9:26 PM
…but we ran out of time. We needed lobbies, scripts working over network etc. We decided to cut the effort.
#ifdef GTA_NETWORK in the source code is a leftover.
June 19, 2025 at 4:14 AM
#ifdef MattataBananaGodboltSorryIMeanCompilerExplorer
April 2, 2026 at 7:14 AM
Fable is honestly doing an amazing job reimplementing MFC on top of SDL so that the original codebase can remain ifdef-clean for multiplatform. Might have to get it to do a WASM port at this rate.
July 11, 2026 at 1:48 AM
My favorite part of that is the ifdef that totally ignores it for most modern CPUs. Still an interesting read
March 4, 2025 at 6:54 PM
#ifdef 🏳️‍🌈
November 23, 2025 at 6:36 AM
Xilinx/Vivado と Intel/Quartus の両方で使う場合、こんな記述方法ができるらしい。
`ifdef XILINX
(* ASYNC_REG = "TRUE" *)
`elsif ALTERA
(* altera_attribute = "-name SYNCHRONIZER_IDENTIFICATION FORCED" *)
`endif
logic [SAFE_STAGES-1:0] r_sync_regs;
September 28, 2026 at 8:24 AM
#ifdef XXX みたいなので色々切り替えてるコードの途中で #undef XXXをぶちこむの邪悪すぎでは?
June 24, 2024 at 2:44 PM
🦙📢 It's been an amazing celebration of #XAMLStudio v2 these last couple of weeks. 🎊 And so #WindowsDev to culminate it all, I'd like to announce that the project is now open-sourced! A seed project in the @dotnetfdn 🎉 Read all about this journey here: devblogs.microsoft.com/ifdef-window...
XAML Studio is now Open Sourced - #ifdef Windows
XAML Studio is now open sourced! It's a WinUI developer tool for rapid prototyping with XAML before integrating in a Visual Studio project.
devblogs.microsoft.com
January 6, 2026 at 7:16 PM
ok, as promised the readme is updated
before: github.com/eed3si9n/ifd...
after: github.com/eed3si9n/ifdef
April 26, 2025 at 4:39 AM
Vimのifdefはヤバい #vimconf
November 23, 2024 at 4:20 AM
I have the Mega Play BIOS rev 0 and rev 1 both building from my decompiled and cleaned up source. Labels added for everything with no hard coded addresses and ifdef blocks documenting the very many revision differences. I'm using the findings to try and fix the MAME core now.
March 15, 2026 at 4:19 AM
*Or* it's a feature. The Linux maintainer deciding "naw, I don't want this stupid copilot feature so I'm just gonna #ifdef the code, and bosses will never notice tee hee". 😋
October 14, 2025 at 3:37 PM
Aside from installing the Emscripten tools (which is very easy), all of the changes to get it working in the browser are in main.cpp (highlighted below) within conditional compilation directives. The only change is to run the main loop inside an emscripten_set_main_loop_arg function...
August 2, 2026 at 5:29 PM
רוצה לדעת מה עשיתי אתמול?
דילוורתי גריט של comment \\ מעל #ifdef
December 11, 2025 at 9:15 AM
I just wrote this in OpenCL and it works.

#ifdef ISNVIDIA
asm( "vshl.u32.u32.u32.wrap.add %0,%1.b0, %2.b0, %3;" : "=r"(hitmask) : "r"(child_bits4), "r"(bit_index4), "r"(hitmask) );
#else
hitmask |= (child_bits4 & 255) << (bit_index4 & 31);
#endif

Yeah.
October 24, 2024 at 2:01 PM