home.social

#endnamespace — Public Fediverse posts

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

  1. 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