mirror of
https://git.sr.ht/~lattis/muon
synced 2026-01-27 09:54:50 +00:00
20 lines
437 B
C
20 lines
437 B
C
/*
|
|
* SPDX-FileCopyrightText: Stone Tickle <lattis@mochiro.moe>
|
|
* SPDX-License-Identifier: GPL-3.0-only
|
|
*/
|
|
|
|
#ifndef MUON_PREPROCESSOR_HELPERS_H
|
|
#define MUON_PREPROCESSOR_HELPERS_H
|
|
|
|
#define STRINGIZE(x) STRINGIZE2(x)
|
|
#define STRINGIZE2(x) #x
|
|
#define LINE_STRING STRINGIZE(__LINE__)
|
|
|
|
#ifdef CONCAT
|
|
#undef CONCAT
|
|
#endif
|
|
#define CONCAT(first, second) CONCAT_SIMPLE(first, second)
|
|
#define CONCAT_SIMPLE(first, second) first##second
|
|
|
|
#endif
|