[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to return to top level and release memory
From: |
John W. Eaton |
Subject: |
Re: How to return to top level and release memory |
Date: |
Mon, 1 Sep 2003 23:09:34 -0500 |
On 1-Sep-2003, address@hidden <address@hidden> wrote:
| The following is a syntax error if OCTAVE_QUIT is a bare block:
|
| if (condition) OCTAVE_QUIT;
| else break;
Also, even if you remember to omit the semicolon after OCTAVE_QUIT,
the else will end up pairing with the if statement in the expansion of
the OCTAVE_QUIT macro instead of the "if (condition)" in the above
code snippet. Similarly, things like
#define FOO \
statement_one (); \
statement_two ()
will cause trouble in the same context. Unless you have a really good
reason to do otherwise, it's usually best to use a
do { ... } while (0)
block around multi-line macros.
jwe