Ignore:
Timestamp:
May 25, 2022, 5:51:24 PM (2 years ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
ADT, ast-experimental, master, pthread-emulation, qualifiedEnum
Children:
c3b9d639
Parents:
5024df4
Message:

Removed most of the exception macros (EHM_ group). Made changes to the exception declaration pass to do so.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/exceptions/defaults.cfa

    r5024df4 rc715e5f  
    22
    33#include <string.h>
    4 #include <exception.hfa>
    54
    65exception log_message {
     
    87};
    98
    10 _EHM_DEFINE_COPY(log_message, )
     9void copy(log_message * this, log_message * that) {
     10        *this = *that;
     11}
     12
    1113const char * msg(log_message * this) {
    1214        return this->msg;
    1315}
    14 _EHM_VIRTUAL_TABLE(log_message, , log_vt);
     16
     17const struct log_message_vtable log_vt @= {
     18        .__cfavir_typeid : &__cfatid_log_message,
     19        .size : sizeof(struct log_message),
     20        .copy : copy,
     21        .^?{} : ^?{},
     22        .msg : msg,
     23};
    1524
    1625// Logging messages don't have to be handled.
Note: See TracChangeset for help on using the changeset viewer.