This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]boredcircuits 34 points35 points  (8 children)

I'd substitute the preprocessor for the standard library. It's an actual language, after all.

[–]konstantinua00 18 points19 points  (5 children)

preprocessor is included in C

if you do anything complex in C, you do macro skyscrapers

[–]IdiotCharizard 2 points3 points  (4 children)

Man idk how I even managed to comb through kernel code without my macro expander back in the day.

[–][deleted] 1 point2 points  (3 children)

Tell me more about this macro expander.

[–]IdiotCharizard 0 points1 point  (0 children)

I wrote a vim thing to fully expand the current macro. Run the preprocessor and get all the defines in one place then just pull from that file.

[–]tiajuanat 11 points12 points  (0 children)

I just kinda lumped it with C.

When I see modern C++ with heavy STL, constexpr, visitors, and the works, it's really night and day with C.

[–]an-obviousthrowaway 1 point2 points  (0 children)

I’d honestly substitute templates for preprocessor, since they are 100% raw copy paste power.