guanaqo main
Utilities for scientific software
Loading...
Searching...
No Matches
stringify.h
Go to the documentation of this file.
1#pragma once
2
3/// @file
4/// @ingroup macros
5/// Stringify and token concatenation helpers.
6
7/// Concatenate the given tokens.
8/// @ingroup macros
9#define GUANAQO_CAT(a, b) GUANAQO_CAT_IMPL(a, b)
10#define GUANAQO_CAT_IMPL(a, b) a##b
11/// Convert the given token to a string literal.
12/// @ingroup macros
13#define GUANAQO_STRINGIFY(s) GUANAQO_STRINGIFY_IMPL(s)
14#define GUANAQO_STRINGIFY_IMPL(s) #s