This commit is contained in:
Niklas Gollenstede
2025-04-14 11:20:52 +02:00
commit 5a2e32aaeb
126 changed files with 16742 additions and 0 deletions

13
compiler/fix.h Normal file
View 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