![]() |
![]() HP OpenVMS Systemsask the wizard |
![]() |
The Question is: Hello, i'm porting a source code to OpenVMS. It is written in C++. Now, there is a function like this: if ( __refcount != 0 ){ _THROWC( "ERROR: Object collected with non-zero refcount" ); return; } The definition is: #define _THROWC(y) throw THROW_TYPE(y) What is _THROW and which makes it? And which function can i use under OpenVMS? Or what is the best way to move this code to OpenVMS. Thank you very much! The Answer is : This appears to be a use of various comparatively recent signal-handling additions to C++, and specifically the try, throw and catch calls. Standard signal handling or the C call perror would be obvious mapping, as would the OpenVMS condition handling facility. Details on the use of try, throw and catch, and of the OpenVMS condition handling facility, are included in the C++ documentation for OpenVMS. The OpenVMS (and C++) documentation is available at: http://www.hp.com/go/openvms/doc/
|