GCC Extensions Roast MSVC Users
10 #define init(class, ...) S(class, init, __VA_ARGS__); 11 12 // GCC extensions, fuck you MSVC users 13 // This will segfault if you're calling a function not in the vtable 14 #define C_(obj, func, ...) ({ __auto_type o = obj; \ 15 vtableFn* fun = vtable_lookup(o->v, #func); \ 16 fun(o __VA_OPT__(,) __VA_ARGS__); })
A dark-themed code editor shows C/C++ preprocessor code defining an initialization macro and a call helper, with the comment “GCC extensions, fuck you MSVC users.” The joke is a boastful, profane jab at Microsoft Visual C++ users, celebrating compiler-specific GCC extensions while warning that the code will segfault if the function is absent from the vtable. It is used as a reaction to overly clever, non-portable programming.
code editor screenshot / скриншот редактора кодаC/C++ source code / исходный код C/C++preprocessor macro / макрос препроцессораcomment text / текст комментарияmonospaced font / моноширинный шрифтdark theme / тёмная темаsyntax highlighting / подсветка синтаксисаbackslash line continuation / перенос строки с обратным слэшемvtable reference / ссылка на vtablesegmentation fault warning / предупреждение о segmentation fault
- @ithueti / 9211 2023-04-09
- Type
- image
- Size
- 800×200 · 26.7 KiB
- Mood
- sarcastic, profane
- Language
- en
- Added