]> git.bts.cx Git - benzene.git/blob - src/bz/scripting/environment_internal.h
Fixed Aseprite rendering system
[benzene.git] / src / bz / scripting / environment_internal.h
1 #ifndef BZ_SCRIPTING_ENVIRONMENT_INTERNAL_H
2 #define BZ_SCRIPTING_ENVIRONMENT_INTERNAL_H
3
4 #include <bz/scripting/environment.h>
5
6 #include <bz/scripting/script_internal.h>
7 #include <bz/types/common.h>
8 #include <bz/types/identifier.h>
9 #include <sun/compiler/compiler.h>
10
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14
15 /*#define kBZScriptingEnvironmentScriptCount 256
16 #define kBZScriptingEnvironmentScriptInstanceCount 256
17 #define kBZScriptingEnvironmentPublicCount 256
18
19 struct BZScriptingEnvironmentPublic {
20 BZIdentifierHash identifierHash;
21 SVMOperand value;
22 };
23 typedef struct BZScriptingEnvironmentPublic BZScriptingEnvironmentPublic;
24
25 struct BZScriptingEnvironment {
26 BZMemoryArenaID arena;
27 char identifier[kBZMaxIdentifierLength];
28 SVMVM *vm;
29 BZScript scripts[kBZScriptingEnvironmentScriptCount];
30 BZScriptInstance instances[kBZScriptingEnvironmentScriptInstanceCount];
31 BZScriptingEnvironmentPublic publics[kBZScriptingEnvironmentPublicCount];
32 };
33
34 extern bool bzScriptingGetEnvironmentPublic(SVMOperand *out, BZScriptingEnvironmentID environment, BZIdentifierHash identifierHash);
35 extern void bzScriptingSetEnvironmentPublic(BZScriptingEnvironmentID environment, BZIdentifierHash identifierHash, SVMOperand value);*/
36
37 #ifdef __cplusplus
38 }
39 #endif
40
41 #endif