Handout
This commit is contained in:
13
compiler/fix.h
Normal file
13
compiler/fix.h
Normal file
@@ -0,0 +1,13 @@
|
||||
/*! \file
|
||||
* \brief Compiler-dependent fixes & idiosyncrasies
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include "../types.h"
|
||||
|
||||
#if defined(__GNUC__) && !defined(__clang__)
|
||||
// Only GCC understands the error attribute
|
||||
#define ERROR_ON_CALL(MSG) __attribute__((error(MSG)));
|
||||
#else
|
||||
#define ERROR_ON_CALL(MSG)
|
||||
#endif
|
||||
Reference in New Issue
Block a user