Compare commits

...

2 Commits

Author SHA1 Message Date
FintasticMan
f8accf55b5
Merge 79cf2419e0 into bcb555fd10 2025-01-04 14:41:39 +01:00
FintasticMan
79cf2419e0
[Core] Add check for supported C/C++ versions 2025-01-02 20:51:12 +01:00

8
clay.h
View File

@ -21,6 +21,14 @@
#ifndef CLAY_HEADER
#define CLAY_HEADER
#if !( \
(defined(__cplusplus) && __cplusplus >= 202002L) || \
(defined(__STDC__) && __STDC__ == 1 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || \
defined(_MSC_VER) \
)
#error "Clay requires C99, C++20, or MSVC"
#endif
#ifdef CLAY_WASM
#define CLAY_WASM_EXPORT(name) __attribute__((export_name(name)))
#else