Re: #pragma cancel_handler




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

.



Relevant Pages

  • Re: #pragma cancel_handler
    ... FWIW, according to the above link, a cancel_handler is a C++ feature. ... cancel_handler in ILE C, because that feature is not part of the C ... There are no exceptions in C, ... That forum might be comp.lang.c++, ...
    (comp.lang.c)
  • Re: #pragma cancel_handler
    ... FWIW, according to the above link, a cancel_handler is a C++ feature. ... cancel_handler in ILE C, because that feature is not part of the C ... How does ANSI C handle exceptions? ...
    (comp.lang.c)
  • Re: Cant update distribution list
    ... FWIW, I've never seen the "Update Now" button do anything useful. ... I rather suspect it is a feature in search of a function. ... > sp1, outlook 2003. ...
    (microsoft.public.outlook.contacts)
  • Re: Avalon + Delphi + .NET V2
    ... > Adding a feature, fwiw, is not ... action lists which significantly improves how you use just about every ... visual control in the VCL is not enhancing the architecture. ...
    (borland.public.delphi.non-technical)
  • Re: Failing unittest Test cases
    ... > Scott David Daniels about marking expected failures: ... I have wanted this feature for a long time. ... FWIW, ...
    (comp.lang.python)