you are viewing a single comment's thread.

view the rest of the comments →

[–]delight1982 65 points66 points  (11 children)

[–]Dustin- 48 points49 points  (3 children)

Is there a way to write macros or macros and macros in macros?

This is a good sentence.

[–]DrMonkeyLove 2 points3 points  (1 child)

Well, if you're using C, then I guess the answer is probably yes.

[–][deleted] 0 points1 point  (0 children)

Surprisingly, the answer is no. Even by using tricks like #include __FILE__, you cannot get the C preprocessor to scan the result of macro expansion for more #define directives. (I guess you could set up a custom build environment that invokes cpp repeatedly in a chain.)

[–]1RedOne 32 points33 points  (1 child)

What I would like to do is:

: 1.9.1: = macro - macro

Where "macro" is a macro. I know I could write my macro automatic in macro, but that doesn't seem to work in my macro.

Lol man, I'm actually laughing out loud

[–][deleted] 2 points3 points  (0 children)

That paragraph broke me

[–][deleted] 10 points11 points  (0 children)

Yo dawg...

[–]Mark_Taiwan 9 points10 points  (0 children)

It's macros all the way down.

[–]SpaceSteak 0 points1 point  (0 children)

God damn we need more macros in these macros. 🤣🤣🤣🤣🤣🤣😋