Began picking through the old logic

This commit is contained in:
2024-05-19 04:26:15 +10:00
parent 361fa78ffb
commit fbcb2e0331
3 changed files with 55 additions and 0 deletions

37
source/toy_common.h Normal file
View File

@@ -0,0 +1,37 @@
#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
#define TOY_VERSION_MAJOR 2
#define TOY_VERSION_MINOR 0
#define TOY_VERSION_PATCH 0
#define TOY_VERSION_BUILD Toy_private_version_build()
TOY_API const char* Toy_private_version_build();