Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/exception.hfa

    r979df46 re68d092  
    1010// Created On       : Thu Apr  7 10:25:00 2020
    1111// Last Modified By : Andrew Beach
    12 // Last Modified On : Wed Apr 13 15:42:00 2020
    13 // Update Count     : 1
     12// Last Modified On : Thu Apr  7 10:25:00 2020
     13// Update Count     : 0
    1414//
    15 
    16 // WARNING: This is for documentation as it will match ANY type.
    17 trait is_exception(dtype T) {
    18         /* The first field must be a pointer to a virtual table.
    19          * That virtual table must be a decendent of the base exception virtual table.
    20          */
    21 };
    22 
    23 forall(dtype T | is_exception(T))
    24 inline void cancel_stack(T & except) __attribute__((noreturn)) {
    25         __cfaehm_cancel_stack( (exception_t *)&except );
    26 }
    2715
    2816// Everything below this line should be considered a patch while the exception
Note: See TracChangeset for help on using the changeset viewer.