AsmGrader 0.0.0
Loading...
Searching...
No Matches
macros.hpp File Reference
Include dependency graph for macros.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CONCAT_IMPL(a, b)
 
#define CONCAT(a, b)
 
#define STRINGIFY_IMPL(a)
 
#define STRINGIFY(a)
 
#define TRY_OR_THROW(expr, ...)
 

Macro Definition Documentation

◆ CONCAT

#define CONCAT ( a,
b )
Value:
#define CONCAT_IMPL(a, b)
Definition macros.hpp:5

◆ CONCAT_IMPL

#define CONCAT_IMPL ( a,
b )
Value:
a##b

◆ STRINGIFY

#define STRINGIFY ( a)
Value:
#define STRINGIFY_IMPL(a)
Definition macros.hpp:8

◆ STRINGIFY_IMPL

#define STRINGIFY_IMPL ( a)
Value:
#a

◆ TRY_OR_THROW

#define TRY_OR_THROW ( expr,
... )
Value:
__extension__({ \
const auto& res__ref = (expr); \
if (!res__ref) { \
throw ContextInternalError{res__ref.error() __VA_OPT__(, ) __VA_ARGS__}; \
} \
res__ref.value(); \
});