source: libcfa/src/Exception.hfa @ f5e37a4

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

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

  • Property mode set to 100644
File size: 291 bytes
Line 
1#pragma once
2
3// TEMPORARY
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.