12.07.2015 Views

Intel® Fortran Libraries Reference

Intel® Fortran Libraries Reference

Intel® Fortran Libraries Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Descriptions of the Library Routines 2The error message string normally included by the run-time system is replaced with theuser-supplied message text, or omitted if no string is specified. Traceback output is directed to thetarget destination appropriate for the application type, just as it is when traceback is initiatedinternally by the run-time system.CompatibilityCONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIBSee Also: “GETEXCEPTIONPTRSQQ”, and "Obtaining Traceback Information withTRACEBACKQQ", "Using Traceback Information", and "Run-Time Message Display andFormat" in your user’s guideExamplesThe following example generates a traceback report with no leading header message, fromwherever the call site is, and aborts execution:USE IFCORECALL TRACEBACKQQ( )The following example generates a traceback report with the user-supplied string as the header,and aborts execution.:USE IFCORECALL TRACEBACKQQ("My application message string")The following example generates a traceback report with the user-supplied string as the header,and aborts execution, returning a status code of 123 to the operating system:USE IFCORECALL TRACEBACKQQ(STRING="Bad value for TEMP",USER_EXIT_CODE=123)Consider the following:...USE IFCOREINTEGER(4) RTN_STSINCLUDE 'IOSDEF.FOR'...CALL TRACEBACKQQ(USER_EXIT_CODE=-1,STATUS=RTN_STS)IF (RTN_STS .EQ. FOR$IOS_SUCCESS) THENPRINT *,'TRACEBACK WAS SUCCESSFUL'END IF...This example generates a traceback report with no header string, and returns to the caller tocontinue execution of the application. If the traceback process succeeds, a status will be returnedin variable RTN_STS.2-483

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!