Topic: Makros with <CR>s ???


Author: jamshid@ses.com (Jamshid Afshar)
Date: Fri, 18 Feb 1994 22:08:44 GMT
Raw View
Redirected to comp.lang.c++.  Please remember that comp.std.c++ is
intended for discussion directly related the evolving ANSI/ISO C++
standard.  General questions should go to comp.lang.c++ (above all
please don't post an article separately to both newsgroups).

In article <1994Feb17.160043.575@ifi.unizh.ch>,
Peter Boehnlein <bohnlein@ifi.unizh.ch> wrote:
>I'd like to write a macro that way that in the generated file
>carriage returns are contained (easies proof-reading). Any ideas how
>to do this?

Btw, don't forget to use CRs in your own articles ;-).

I don't understand what you mean by "generated file".  If you would
spread a macro definition across multiple lines, put a backslash at
the end of each line:

 #define STACK( T ) \
 class PASTE(Stack,T) { \
    T* arr; \
 public: \
 /*...*/ \
 };

There's an example and other useful info about macros in the
comp.lang.c FAQ (rtfm.mit.edu, pub/usenet/comp.lang.c/*).

Jamshid Afshar
jamshid@ses.com




Author: bohnlein@ifi.unizh.ch (Peter Boehnlein)
Date: Thu, 17 Feb 1994 16:00:43 GMT
Raw View
Hi out there,

I'd like to write a macro that way that in the generated file carriage returns are contained (easies proof-reading). Any ideas how to do this?

Any hints are highly appreciated.

Thanks -- Peter

------------------------------------------------------------
Peter Boehnlein
University of Zuerich         Phone           +41-1-257 4574
Winterthurerstr. 190          Telefax         +41-1-363 0035
CH-8057 Zuerich               Telex          817 251 unii ch
Switzerland                   E-mail  boehnlein@ifi.unizh.ch
------------------------------------------------------------
--

------------------------------------------------------------
Peter Boehnlein
University of Zuerich         Phone           +41-1-257 4574