Toy 1.1.6
The Toy programming language is an imperative bytecode-intermediate embedded scripting language
Loading...
Searching...
No Matches
toy_common.h
Go to the documentation of this file.
1
7#ifndef TOY_COMMON_H_
8#define TOY_COMMON_H_
9
10#include <stdbool.h>
11#include <stddef.h>
12#include <stdint.h>
13
14#define TOY_VERSION_MAJOR 1
15#define TOY_VERSION_MINOR 1
16#define TOY_VERSION_PATCH 6
18//platform/compiler-specific instructions
19#if defined(__linux__) || defined(__MINGW32__) || defined(__GNUC__)
20
26#define TOY_API extern
27
28#elif defined(_MSC_VER)
29
30#ifndef TOY_EXPORT
31#define TOY_API __declspec(dllimport)
32#else
33#define TOY_API __declspec(dllexport)
34#endif
35
36#else
37
38#define TOY_API extern
39
40#endif
41#endif /* TOY_COMMON_H_ */
42