]> git.bts.cx Git - sun.git/blob - runtime/src/sun/vm/vm_internal.h
Fixed syntax for definitions
[sun.git] / runtime / src / sun / vm / vm_internal.h
1 #ifndef SUN_VM_VM_INTERNAL_H
2 #define SUN_VM_VM_INTERNAL_H
3
4 #include <sun/vm/vm.h>
5
6 #include <sun/vm/instruction.h>
7 #include <stdint.h>
8
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12
13 struct SVMModule {
14 char header[4];
15 uint32_t magic;
16 uint32_t stringBlobLength;
17 uint32_t numFunctions;
18 uint32_t numInstructions;
19 };
20
21 struct SVMModuleFunctionDetails {
22 SVMPointer nameStringPtr;
23 SVMPointer functionInstruction;
24 };
25
26 #ifdef __cplusplus
27 }
28 #endif
29
30 #endif