a new beginning

Signed-off-by: Folling <mail@folling.io>
This commit is contained in:
Folling 2023-08-22 00:27:22 +02:00 committed by Folling
commit 8eb2067318
Signed by: folling
SSH key fingerprint: SHA256:S9qEx5WCFFLK49tE/LKnKuJYM5sw+++Dn6qJbbyxnCY
25 changed files with 1718 additions and 0 deletions

27
include/ikarus/macros.h Normal file
View file

@ -0,0 +1,27 @@
#pragma once
#if defined(__unix__)
#define IKA_OS_FAMILY_UNIX
#define IKA_API __attribute__((visibility("default")))
#if defined(linux)
#define IKA_OS_LINUX
#endif
#elif defined(_WIN32) || defined(WIN32)
#define IKA_OS_WIN
#define IKA_API __declspec(dllexport)
#endif
#ifndef IKA_API
#define IKA_API
#endif
#ifdef __cplusplus
#define IKARUS_BEGIN_HEADER extern "C" {
#define IKARUS_END_HEADER }
#else
#define IKARUS_BEGIN_HEADER
#define IKARUS_END_HEADER
#endif