Sheep
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
sheepCommon.h
Go to the documentation of this file.
1 #ifndef SHEEPCOMMON_H
2 #define SHEEPCOMMON_H
3 
5 
6 #ifndef DOXYGEN_SHOULD_SKIP_THIS
7 #ifdef _MSC_VER
8 #define SHP_DECLSPEC __declspec(dllexport)
9 #define SHP_LIB_CALL __cdecl
10 #define SHP_CALLBACK __stdcall
11 #define SHP_APIENTRY __stdcall
12 #else
13 #define SHP_DECLSPEC
14 #define SHP_LIB_CALL
15 #define SHP_CALLBACK __attribute__((stdcall))
16 #define SHP_APIENTRY __attribute__((stdcall))
17 #endif
18 #endif // DOXYGEN_SHOULD_SKIP_THIS
19 
20 
22 #define SHEEP_SUCCESS 0
23 
25 #define SHEEP_ERROR -1
26 
28 #define SHEEP_ERR_NO_SUCH_FUNCTION -2
29 
31 #define SHEEP_ERR_FILE_NOT_FOUND -10
32 
34 #define SHEEP_ERR_INVALID_FILE_FORMAT -11
35 
37 #define SHEEP_GENERIC_COMPILER_ERROR -100
38 
40 #define SHEEP_ERR_NO_CONTEXT_AVAILABLE -101
41 
43 #define SHEEP_ERR_EMPTY_STACK -102
44 
46 #define SHEEP_ERR_WRONG_TYPE_ON_STACK -103
47 
49 #define SHEEP_ERR_INVALID_ARGUMENT -105
50 
52 #define SHEEP_ERR_VARIABLE_NOT_FOUND -106
53 
55 #define SHEEP_ERR_VARIABLE_INCORRECT_TYPE -107
56 
58 #define SHEEP_ERR_INVALID_OPERATION -108
59 
61 #define SHEEP_GENERIC_VM_ERROR -200
62 
64 #define SHEEP_UNKNOWN_ERROR_PROBABLY_BUG -1000
65 
67 #define SHEEP_SUSPENDED 2
68 
69 
70 extern "C"
71 {
72  struct SHP_Version
73  {
75  unsigned short Major;
76 
78  unsigned short Minor;
79 
81  unsigned short Revision;
82  };
83 
85  SHP_DECLSPEC SHP_Version shp_GetVersion();
86 }
87 
88 #endif // SHEEPCOMMON_H
unsigned short Revision
The revision number.
Definition: sheepCommon.h:81
unsigned short Minor
The minor version.
Definition: sheepCommon.h:78
Definition: sheepCommon.h:72
SHP_DECLSPEC SHP_Version shp_GetVersion()
Gets the version of the Sheep library.
unsigned short Major
The major version.
Definition: sheepCommon.h:75