Re: #pragma cancel_handler
- From: "Lew Pitcher" <lpitcher@xxxxxxxxxxxx>
- Date: 7 Nov 2006 11:35:48 -0800
Steve Richter wrote:
Is there an ANSI C or GNU C equivalent to the #pragma cancel_handler
provided in IBM's ILE C compiler?
http://publib.boulder.ibm.com/infocenter/iadthelp/v6r0/index.jsp?topic=/com.ibm.etools.iseries.pgmgd.doc/cpprog436.htm
FWIW, according to the above link, a cancel_handler is a C++ feature.
Since this is comp.lang.C, we don't know about or discuss C++ features.
There certainly won't be an ANSI C equivalent to the #pragma
cancel_handler in ILE C, because that feature is not part of the C
language at all.
When you talk to the GNU C groups, please address your question to the
C++ side of the fence.
Thanks
What #pragma cancel_handler does is provide the building blocks for try
... finally code block in a C function.
Apparently, it doesn't, since there is no such thing as a "try ...
finally" code block in C. As I said before, you want C++, not C
.
- Follow-Ups:
- Re: #pragma cancel_handler
- From: Steve Richter
- Re: #pragma cancel_handler
- From: Ben Pfaff
- Re: #pragma cancel_handler
- References:
- #pragma cancel_handler
- From: Steve Richter
- #pragma cancel_handler
- Prev by Date: Re: swap of two no.?????
- Next by Date: Re: #pragma cancel_handler
- Previous by thread: Re: #pragma cancel_handler
- Next by thread: Re: #pragma cancel_handler
- Index(es):
Relevant Pages
|
|