Changeset 419985c


Ignore:
Timestamp:
Aug 5, 2023, 12:00:10 PM (9 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
76acb60
Parents:
502a107
Message:

add macros Exception and Throw to simplify using exceptions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/common.hfa

    r502a107 r419985c  
    1010// Created On       : Wed Jul 11 17:54:36 2018
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sat Oct  8 08:32:57 2022
    13 // Update Count     : 23
     12// Last Modified On : Sat Aug  5 11:52:08 2023
     13// Update Count     : 26
    1414//
    1515
    1616#pragma once
     17
     18// TEMPORARY
     19#define Exception( name ) exception name{}; static vtable( name ) name ## _vt
     20#define Throw( name ) throw (name){ &name ## _vt }
    1721
    1822//---------------------------------------
Note: See TracChangeset for help on using the changeset viewer.