Is it possible to use an org-mode #+MACRO:
in an org-babel block?
I'm getting this in the #+RESULTS:
block when I evaluate the src
block with C-c C-c:
#+MACRO: COMPILE_FLAGS -std=c99 -Wall -Werror -pedantic
#+begin_src shell
echo $"{{{COMPILE_FLAGS}}}"
#+end_src
#+RESULTS:
: {{{COMPILE_FLAGS}}}
But I expected this:
#+MACRO: COMPILE_FLAGS -std=c99 -Wall -Werror -pedantic
#+begin_src shell
echo $"{{{COMPILE_FLAGS}}}"
#+end_src
#+RESULTS:
: -std=c99 -Wall -Werror -pedantic
The org-mode documentation does not hint that source blocks are treated differently, so am I doing this wrong, or should I use a different approach?
EDIT - I just realized that macro expansion is listed under "exporting" so maybe that's my problem... I am evaluating a code block, not "exporting" a document. But I'd still like a solution to replacing the macros when evaluating a code block.