Glass PM C++ Macros: Difference between revisions
Appearance
No edit summary |
mNo edit summary |
||
Line 50: | Line 50: | ||
; Version: 1.0 | ; Version: 1.0 | ||
; Code: | ; Code: | ||
public define PM_ERROR_LOCATION __FILE__ , __FUNCTION__ , __LINE__ | |||
==macro PM_MAX_THREADS== | ==macro PM_MAX_THREADS== | ||
Line 59: | Line 59: | ||
; Version: 1.0 | ; Version: 1.0 | ||
; Code: | ; Code: | ||
public define PM_MAX_THREADS 50 | |||
==macro PM_THROW_DOSERROR== | ==macro PM_THROW_DOSERROR== | ||
Line 68: | Line 68: | ||
; Version: 1.0 | ; Version: 1.0 | ||
; Code: | ; Code: | ||
public define PM_THROW_DOSERROR ( rc ) PM_THROW_ERROR ( rc , "DOS" , NULL ) | |||
==macro PM_THROW_ERROR== | ==macro PM_THROW_ERROR== | ||
Line 79: | Line 79: | ||
; 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 ) ) | |||
Line 89: | Line 89: | ||
; Version: 1.0 | ; Version: 1.0 | ||
; Code: | ; Code: | ||
public define PM_THROW_GUIERROR ( ) throw ( PMError ( PM_ERROR_LOCATION ) . show ( PM_STDERR ) ) | |||
[[Category:Glass PM C++ API]] | [[Category:Glass PM C++ API]] |
Revision as of 22:50, 19 March 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 ) )