Glass PM C++ Macros: Difference between revisions
Appearance
	
	
| mNo edit summary | mNo edit summary | ||
| Line 1: | Line 1: | ||
| {|  | {|class="wikitable" | ||
| !Entity||Type||Scope||Short Description | |||
| |- | |- | ||
| |PM_ERROR_LOCATION||macro||public||Current error location. | |||
| |- | |- | ||
| | | |PM_MAX_THREADS||macro||public||Sets the maximum number of threads supported by the library. | ||
| |macro   | |||
| |public | |||
| |  | |||
| |- | |- | ||
| | | |PM_THROW_CLIBERROR||macro||public||Throws the C Library (CLIB) exception. | ||
| |macro   | |||
| |public | |||
| |  | |||
| |- | |- | ||
| | | |PM_THROW_DOSERROR||macro||public||Throws the Operating System (DOS) exception. | ||
| |macro   | |||
| |public | |||
| | Throws the  | |||
| |- | |- | ||
| | | |PM_THROW_ERROR||macro||public||Throws exception. | ||
| |macro   | |||
| |public | |||
| | Throws  | |||
| |- | |- | ||
| | | |PM_THROW_GUIERROR||macro||public||Throws the GUI (WIN) exception. | ||
| |macro   | |||
| |public | |||
| |  | |||
| | Throws the GUI (WIN) exception. | |||
| |} | |} | ||
| ==macro PM_ERROR_LOCATION== | ==macro PM_ERROR_LOCATION== | ||
| Current error location. | Current error location. | ||
| ; Source: pm_error.h:121 | ; Source: pm_error.h:121 | ||
| ; Author: Dmitry A.Steklenev   | ; Author: Dmitry A.Steklenev | ||
| ; Version: 1.0 | ; Version: 1.0 | ||
| ; Code: | ; Code: | ||
|   public define PM_ERROR_LOCATION __FILE__ , __FUNCTION__ , __LINE__   |   public define PM_ERROR_LOCATION __FILE__ , __FUNCTION__ , __LINE__ | ||
| ==macro PM_MAX_THREADS== | ==macro PM_MAX_THREADS== | ||
| Sets the maximum number of threads supported by the library. | Sets the maximum number of threads supported by the library. | ||
| ; Source: pm_gui.h:23 | ; Source: pm_gui.h:23 | ||
| ; Author: Dmitry A.Steklenev   | ; Author: Dmitry A.Steklenev | ||
| ; Version: 1.0 | ; Version: 1.0 | ||
| ; Code: | ; Code: | ||
| Line 63: | Line 33: | ||
| ==macro PM_THROW_DOSERROR== | ==macro PM_THROW_DOSERROR== | ||
| Throws the Operating System (DOS) exception. | Throws the Operating System (DOS) exception. | ||
| ; Source: pm_error.h:154 | ; Source: pm_error.h:154 | ||
| ; Author: Dmitry A.Steklenev   | ; Author: Dmitry A.Steklenev | ||
| ; Version: 1.0 | ; Version: 1.0 | ||
| ; Code: | ; Code: | ||
| Line 74: | Line 43: | ||
| The PM_THROW_ERROR macro accepts as input an error identifier and error description. It expands to set the location information to the instance, logs all instance data, and then throws the exception. | The PM_THROW_ERROR macro accepts as input an error identifier and error description. It expands to set the location information to the instance, logs all instance data, and then throws the exception. | ||
| ; Source: pm_error.h:135 | ; Source: pm_error.h:135 | ||
| ; Author: Dmitry A.Steklenev   | ; Author: Dmitry A.Steklenev | ||
| ; Version: 1.0 | ; Version: 1.0 | ||
| ; Code: | ; Code: | ||
|   public define PM_THROW_ERROR ( id , group , what ) throw ( PMError ( id , group , what , PM_ERROR_LOCATION ) . show ( PM_STDERR ) )   |   public define PM_THROW_ERROR ( id , group , what ) throw ( PMError ( id , group , what , PM_ERROR_LOCATION ) . show ( PM_STDERR ) )   | ||
| ==macro PM_THROW_GUIERROR== | ==macro PM_THROW_GUIERROR== | ||
| Throws the GUI (WIN) exception. | Throws the GUI (WIN) exception. | ||
| ; Source: pm_error.h:145 | ; Source: pm_error.h:145 | ||
| ; Author: Dmitry A.Steklenev   | ; Author: Dmitry A.Steklenev | ||
| ; Version: 1.0 | ; Version: 1.0 | ||
| ; Code: | ; Code: | ||
Latest revision as of 00:03, 16 August 2018
| Entity | Type | Scope | Short Description | 
|---|---|---|---|
| PM_ERROR_LOCATION | macro | public | Current error location. | 
| PM_MAX_THREADS | macro | public | Sets the maximum number of threads supported by the library. | 
| PM_THROW_CLIBERROR | macro | public | Throws the C Library (CLIB) exception. | 
| PM_THROW_DOSERROR | macro | public | Throws the Operating System (DOS) exception. | 
| PM_THROW_ERROR | macro | public | Throws exception. | 
| PM_THROW_GUIERROR | macro | public | Throws the GUI (WIN) exception. | 
macro PM_ERROR_LOCATION
Current error location.
- Source
- pm_error.h:121
- Author
- Dmitry A.Steklenev
- Version
- 1.0
- Code
public define PM_ERROR_LOCATION __FILE__ , __FUNCTION__ , __LINE__
macro PM_MAX_THREADS
Sets the maximum number of threads supported by the library.
- Source
- pm_gui.h:23
- Author
- Dmitry A.Steklenev
- Version
- 1.0
- Code
public define PM_MAX_THREADS 50
macro PM_THROW_DOSERROR
Throws the Operating System (DOS) exception.
- Source
- pm_error.h:154
- Author
- Dmitry A.Steklenev
- Version
- 1.0
- Code
public define PM_THROW_DOSERROR ( rc ) PM_THROW_ERROR ( rc , "DOS" , NULL )
macro PM_THROW_ERROR
Throws exception.
The PM_THROW_ERROR macro accepts as input an error identifier and error description. It expands to set the location information to the instance, logs all instance data, and then throws the exception.
- Source
- pm_error.h:135
- Author
- Dmitry A.Steklenev
- Version
- 1.0
- Code
public define PM_THROW_ERROR ( id , group , what ) throw ( PMError ( id , group , what , PM_ERROR_LOCATION ) . show ( PM_STDERR ) )
macro PM_THROW_GUIERROR
Throws the GUI (WIN) exception.
- Source
- pm_error.h:145
- Author
- Dmitry A.Steklenev
- Version
- 1.0
- Code
public define PM_THROW_GUIERROR ( ) throw ( PMError ( PM_ERROR_LOCATION ) . show ( PM_STDERR ) )