Changeset 3c82bf6


Ignore:
Timestamp:
Aug 7, 2023, 10:23:02 AM (16 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
bc9f84a
Parents:
6d5790d
Message:

update exception macros

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/common.hfa

    r6d5790d r3c82bf6  
    1010// Created On       : Wed Jul 11 17:54:36 2018
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sat Aug  5 13:05:27 2023
    13 // Update Count     : 32
     12// Last Modified On : Mon Aug  7 10:16:35 2023
     13// Update Count     : 34
    1414//
    1515
     
    1717
    1818// TEMPORARY
    19 #define Exception( name ) exception name{}; vtable( name ) name ## _vt
    20 #define Throw( name ) throw (name){ &name ## _vt }
     19#define Exception( name, fields... ) exception name{ fields }; static vtable( name ) name ## _vt
     20#define ExceptionDecl( name, fields... ) exception name{ fields }
     21#define ExceptionDefn( name, fields... ) static vtable( name ) name ## _vt
     22#define ExceptionValue( name, values... ) (name){ &name ## _vt, values }
     23#define Throw( name, values... ) throw (name){ values }
    2124
    2225//---------------------------------------
Note: See TracChangeset for help on using the changeset viewer.