home.social

#cpreprocessor — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #cpreprocessor, aggregated by home.social.

  1. 🚀 Oh joy! Another deep dive into the C Preprocessor authored by Kafka's ghost, promising #enlightenment once the tears of despair dry up. 🤡 Spoiler alert: It's just another way to make you question your life choices while hopelessly entangled in recursive macro spaghetti. 🍝🔄
    h4x0r.org/big-mac-ro-attack/ #CPreprocessor #RecursiveMacros #LifeChoices #Kafkaesque #HackerNews #ngated

  2. Ah, the C preprocessor—because nothing screams "optimize" like using a tool meant for text substitution to interpret #Brainfuck 🧠💩. GitHub's cutting-edge #innovation has finally made it possible to over-engineer obsolescence. Next up: using Excel macros to land rockets 🚀📉.
    github.com/camel-cdr/bfcpp #CPreprocessor #Overengineering #GitHub #ExcelMacros #HackerNews #ngated

  3. C++ isn't a serious language.

    today's bullshit:

    template<typename T, typename U, U T::* Member>
    struct get_offset {
    static constexpr size_t offset = offsetof(T, Member);
    };

    struct Example {
    int x;
    };

    const size_t N = get_offset<Example, int, &Example::x>::offset;

    This doesn't compile with clang. because...

    1/2

    #cpp #clang #cxx #macros #cpreprocessor #doomed

  4. I wonder if anyone has seriously thought about adding some kind of namespacing to the C preprocessor.

    for example, it would be nice if you could say

    #namespace FOO
    #include "foo.h"
    #endnamespace

    and then all the preprocessor defines from foo.h are brought into your file with names like FOO###BOOL

    #c #preprocessor #cpreprocessor #cpp #wg14

  5. I wonder if anyone has seriously thought about adding some kind of namespacing to the C preprocessor.

    for example, it would be nice if you could say

    #namespace FOO
    #include "foo.h"
    #endnamespace

    and then all the preprocessor defines from foo.h are brought into your file with names like FOO###BOOL

    #c #preprocessor #cpreprocessor #cpp #wg14

  6. I wonder if anyone has seriously thought about adding some kind of namespacing to the C preprocessor.

    for example, it would be nice if you could say

    #namespace FOO
    #include "foo.h"
    #endnamespace

    and then all the preprocessor defines from foo.h are brought into your file with names like FOO###BOOL

    #c #preprocessor #cpreprocessor #cpp #wg14

  7. I wonder if anyone has seriously thought about adding some kind of namespacing to the C preprocessor.

    for example, it would be nice if you could say

    #namespace FOO
    #include "foo.h"
    #endnamespace

    and then all the preprocessor defines from foo.h are brought into your file with names like FOO###BOOL

    #c #preprocessor #cpreprocessor #cpp #wg14

  8. I wonder if anyone has seriously thought about adding some kind of namespacing to the C preprocessor.

    for example, it would be nice if you could say

    #namespace FOO
    #include "foo.h"
    #endnamespace

    and then all the preprocessor defines from foo.h are brought into your file with names like FOO###BOOL

    #c #preprocessor #cpreprocessor #cpp #wg14