mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 23:04:08 +10:00
commit 633500eeaf72e7e5aed90f3eb071f56d93e129eb Author: Kayne Ruse <kayneruse@gmail.com> Date: Fri Aug 9 23:16:55 2024 +1000 Please work... commit 4b524a27fd1fe11e02206853b84bdfb349be5bf9 Author: Kayne Ruse <kayneruse@gmail.com> Date: Fri Aug 9 22:57:07 2024 +1000 This is starting to get annoying. commit 5e16a87f6cef7ca9eb536bcc172fd4a184c20124 Author: Kayne Ruse <kayneruse@gmail.com> Date: Fri Aug 9 22:38:31 2024 +1000 Fixed workflow file Used this: https://rhysd.github.io/actionlint/ commit 7fd6dd610ee3e9327350859b047b0c4792e74f19 Author: Kayne Ruse <kayneruse@gmail.com> Date: Fri Aug 9 22:30:50 2024 +1000 Let's try again commit d83b42a894929f926ba5bf94dee8a2a495a4db86 Author: Kayne Ruse <kayneruse@gmail.com> Date: Fri Aug 9 22:27:36 2024 +1000 Reworked the CI Also checked over the new code.
40 lines
772 B
C
40 lines
772 B
C
#pragma once
|
|
|
|
//for specified type sizes
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
#include <stddef.h>
|
|
|
|
|
|
//TOY_API is platform-dependant, and marks publicly usable API functions
|
|
#if defined(__linux__) || defined(__MINGW32__) || defined(__GNUC__)
|
|
|
|
//GCC support
|
|
#define TOY_API extern
|
|
|
|
#elif defined(_MSC_VER)
|
|
|
|
//MSVC support
|
|
#ifndef TOY_EXPORT
|
|
#define TOY_API __declspec(dllimport)
|
|
#else
|
|
#define TOY_API __declspec(dllexport)
|
|
#endif
|
|
|
|
#else
|
|
|
|
//generic
|
|
#define TOY_API extern
|
|
|
|
#endif
|
|
|
|
//bytecode version specifiers, embedded as the header
|
|
#define TOY_VERSION_MAJOR 2
|
|
#define TOY_VERSION_MINOR 0
|
|
#define TOY_VERSION_PATCH 0
|
|
|
|
//defined as a function, for technical reasons
|
|
#define TOY_VERSION_BUILD Toy_private_version_build()
|
|
TOY_API const char* Toy_private_version_build();
|
|
|