source: libcfa/src/Exception.hfa @ 1f11818

Last change on this file since 1f11818 was 77bc259, checked in by Peter A. Buhr <pabuhr@…>, 9 months ago

move exception macro to general location, update more code to use macros

  • Property mode set to 100644
File size: 291 bytes
RevLine 
[3543e99]1#pragma once
2
3// TEMPORARY
[77bc259]4#define ExceptionDecl( name, fields... ) exception name{ fields }; \
5        __attribute__(( cfa_linkonce )) vtable( name ) name ## _vt
6#define ExceptionArgs( name, args... ) &name ## _vt, args
7#define ExceptionInst( name, args... ) (name){ ExceptionArgs( name, args ) }
Note: See TracBrowser for help on using the repository browser.