Ignore:
Timestamp:
Jun 2, 2022, 3:11:21 PM (3 years ago)
Author:
caparsons <caparson@…>
Branches:
ADT, ast-experimental, master, pthread-emulation, qualifiedEnum
Children:
ced5e2a
Parents:
015925a (diff), fc134a48 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/exceptions/defaults.cfa

    r015925a re5d9274  
    22
    33#include <string.h>
    4 #include <exception.hfa>
    54
    65exception log_message {
     
    87};
    98
    10 _EHM_DEFINE_COPY(log_message, )
     9// Manually define the virtual table and helper functions.
     10void copy(log_message * this, log_message * that) {
     11        *this = *that;
     12}
     13
    1114const char * msg(log_message * this) {
    1215        return this->msg;
    1316}
    14 _EHM_VIRTUAL_TABLE(log_message, , log_vt);
     17
     18const struct log_message_vtable log_vt @= {
     19        .__cfavir_typeid : &__cfatid_log_message,
     20        .size : sizeof(struct log_message),
     21        .copy : copy,
     22        .^?{} : ^?{},
     23        .msg : msg,
     24};
    1525
    1626// Logging messages don't have to be handled.
Note: See TracChangeset for help on using the changeset viewer.