mirror of
https://github.com/thepigeongenerator/mcaselector-lite.git
synced 2025-12-16 19:45:46 +01:00
15 lines
680 B
C
15 lines
680 B
C
/* Copyright (c) 2025 Quinn.
|
|
* This is a file from the project MCA-Selector-Lite and is
|
|
* licensed under the MIT Licence. See the project's LICENSE file for details. */
|
|
#pragma once
|
|
|
|
#if defined(__unix__)
|
|
#define unixonly(_exec) _exec // executes inline code when __unix__ is defined, otherwise is no-op
|
|
#define winonly(_exec) // (no-op) executes inline code when _WIN32 is defined, otherwise is no-op
|
|
#elif defined(_WIN32)
|
|
#define unixonly(_exec) // (no-op) executes inline code when __unix__ is defined, otherwise is no-op
|
|
#define winonly(_exec) _exec // executes inline code when _WIN32 is defined, otherwise is no-op
|
|
#else
|
|
#error platform unsupported!!
|
|
#endif
|