CX Framework
Cross-platform C utility framework
Loading...
Searching...
No Matches
ptry.h File Reference

Exception handling (advanced feature with semantic differences) More...

#include <cx/meta/pblock.h>

Go to the source code of this file.

Data Structures

struct  ExceptionInfo
 

Macros

#define ptThrow(code, msg)   _ptry_throw(code, msg)
 
#define ptRethrow   _ptry_throw(_ptry_exc.code, _ptry_exc.msg)
 
#define ptTry
 
#define ptFinally
 
#define ptCatch
 
#define ptCode   _ptry_exc.code
 
#define ptMsg   _ptry_exc.msg
 

Typedefs

typedef struct ExceptionInfo ExceptionInfo
 
typedef int(* ptUnhandledHandler) (ExceptionInfo *einfo)
 

Functions

void ptRegisterUnhandled (ptUnhandledHandler handler)
 
void ptUnregisterUnhandled (ptUnhandledHandler handler)
 

Detailed Description

Exception handling (advanced feature with semantic differences)

Definition in file ptry.h.