unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* anybody ever write a CPP demacrofier for Emacs?
@ 2004-10-26  3:13 Hattuari
  2004-10-26  3:38 ` Johan Bockgård
  0 siblings, 1 reply; 2+ messages in thread
From: Hattuari @ 2004-10-26  3:13 UTC (permalink / raw)


Does anybody know of an Emacs package the can expand CPP macros and replace
the macro with the expansion?
-- 
p->m == (*p).m == p[0].m

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: anybody ever write a CPP demacrofier for Emacs?
  2004-10-26  3:13 anybody ever write a CPP demacrofier for Emacs? Hattuari
@ 2004-10-26  3:38 ` Johan Bockgård
  0 siblings, 0 replies; 2+ messages in thread
From: Johan Bockgård @ 2004-10-26  3:38 UTC (permalink / raw)


Hattuari <susudata@setidava.kushan.aa> writes:

> Does anybody know of an Emacs package the can expand CPP macros and
> replace the macro with the expansion?

It's part of the standard Emacs C mode.

,----
| C-c C-e runs the command c-macro-expand
|    which is an interactive autoloaded Lisp function in `cmacexp'.
| It is bound to C-c C-e, <menu-bar> <c> <macro expand region>.
| (c-macro-expand START END SUBST)
| 
| Expand C macros in the region, using the C preprocessor.
| Normally display output in temp buffer, but
| prefix arg means replace the region with it.
| 
| `c-macro-preprocessor' specifies the preprocessor to use.
| Prompt for arguments to the preprocessor (e.g. `-DDEBUG -I ./include')
| if the user option `c-macro-prompt-flag' is non-nil.
| 
| Noninteractive args are START, END, SUBST.
| For use inside Lisp programs, see also `c-macro-expansion'.
| 
| [back]
`----

-- 
Johan Bockgård

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-10-26  3:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-26  3:13 anybody ever write a CPP demacrofier for Emacs? Hattuari
2004-10-26  3:38 ` Johan Bockgård

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).