summaryrefslogtreecommitdiff
path: root/asl/base/config.hpp
blob: f5756c3c0f0556f63b09918df7228311dbf5d399 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright 2025 Steven Le Rouzic
//
// SPDX-License-Identifier: BSD-3-Clause

// NOLINTBEGIN(*-macro-to-enum)

#pragma once

#if defined(_WIN32)
    #define ASL_OS_WINDOWS 1
#elif defined(__linux__)
    #define ASL_OS_LINUX 1
#else
    #error Unknown OS
#endif

#if defined(__clang__) && defined(_MSC_VER)
    #define ASL_COMPILER_CLANG_CL 1
#elif defined(__clang__)
    #define ASL_COMPILER_CLANG 1
#else
    #error Unknown compiler
#endif

// NOLINTEND(*-macro-to-enum)