libscratchcpp
A library for C++ based Scratch project players
Toggle main menu visibility
Loading...
Searching...
No Matches
global.h
Go to the documentation of this file.
1
// SPDX-License-Identifier: Apache-2.0
2
3
#ifndef LIBSCRATCHCPP_GLOBAL_H
4
#define LIBSCRATCHCPP_GLOBAL_H
5
6
#if defined(_MSC_VER) || defined(WIN64) || defined(_WIN64) || defined(__WIN64__) || defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__)
7
#define DECL_EXPORT __declspec(dllexport)
8
#define DECL_IMPORT __declspec(dllimport)
9
#else
10
#define DECL_EXPORT __attribute__((visibility("default")))
11
#define DECL_IMPORT __attribute__((visibility("default")))
12
#endif
13
14
#if defined(LIBSCRATCHCPP_LIBRARY)
15
#define LIBSCRATCHCPP_EXPORT DECL_EXPORT
16
#else
17
#define LIBSCRATCHCPP_EXPORT DECL_IMPORT
18
#endif
19
20
#include <string>
21
23
namespace
libscratchcpp
24
{
25
26
class
Compiler;
27
class
CompilerValue;
28
class
Block;
29
class
Value;
30
36
using
BlockComp
=
CompilerValue
*(*)(
Compiler
*);
37
43
using
MonitorNameFunc
=
const
std::string &(*)(
Block
*);
44
50
using
MonitorChangeFunc
= void (*)(
Block
*,
const
Value
&newValue);
51
57
using
HatPredicateCompileFunc
=
CompilerValue
*(*)(
Compiler
*vm);
58
59
}
// namespace libscratchcpp
60
61
#endif
// LIBSCRATCHCPP_GLOBAL_H
libscratchcpp::Block
The Block class represents a Scratch block.
Definition
block.h:24
libscratchcpp::CompilerValue
The CompilerValue class represents a local value in compiled code.
Definition
compilervalue.h:14
libscratchcpp::Compiler
The Compiler class provides API for compiling Scratch scripts.
Definition
compiler.h:33
libscratchcpp::Value
The Value class represents a Scratch value.
Definition
value.h:22
libscratchcpp
The main namespace of the library.
Definition
asset.h:10
libscratchcpp::MonitorNameFunc
const std::string &(*)(Block *) MonitorNameFunc
Definition
global.h:43
libscratchcpp::HatPredicateCompileFunc
CompilerValue *(*)(Compiler *vm) HatPredicateCompileFunc
Definition
global.h:57
libscratchcpp::MonitorChangeFunc
void(*)(Block *, const Value &newValue) MonitorChangeFunc
Definition
global.h:50
libscratchcpp::BlockComp
CompilerValue *(*)(Compiler *) BlockComp
Definition
global.h:36
include
scratchcpp
global.h
Generated by
1.17.0