Jump to content

Glass PM C++ Macros

From EDM2
Revision as of 01:03, 16 August 2018 by Ak120 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 ) )