changed flags
added 2 more error types --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%4064
This commit is contained in:
parent
9743c00e2f
commit
4c18f46860
@ -57,11 +57,7 @@ typedef struct sp_file_hdr_s
|
|||||||
uint32_t dataoffs; /* offset to file proper (any compression starts here) */
|
uint32_t dataoffs; /* offset to file proper (any compression starts here) */
|
||||||
} sp_file_hdr_t;
|
} sp_file_hdr_t;
|
||||||
|
|
||||||
typedef enum
|
#define SP_FLAG_DEBUG (1<<0)
|
||||||
{
|
|
||||||
SP_FILE_NONE = 0,
|
|
||||||
SP_FILE_DEBUG = 1,
|
|
||||||
} sp_file_flags_t;
|
|
||||||
|
|
||||||
/* section is ".code" */
|
/* section is ".code" */
|
||||||
typedef struct sp_file_code_s
|
typedef struct sp_file_code_s
|
||||||
|
@ -17,11 +17,13 @@ typedef int32_t cell_t;
|
|||||||
#define SP_ERR_INVALID_ADDRESS 5 /* A memory address was not valid */
|
#define SP_ERR_INVALID_ADDRESS 5 /* A memory address was not valid */
|
||||||
#define SP_ERR_NOT_FOUND 6 /* The object in question was not found */
|
#define SP_ERR_NOT_FOUND 6 /* The object in question was not found */
|
||||||
#define SP_ERR_INDEX 7 /* Invalid index parameter */
|
#define SP_ERR_INDEX 7 /* Invalid index parameter */
|
||||||
|
#define SP_ERR_NATIVE_PENDING 8 /* A script tried to exec an unbound native */
|
||||||
|
#define SP_ERR_STACKERR 9 /* Stack/Heap collision */
|
||||||
|
|
||||||
/**********************************************
|
/**********************************************
|
||||||
*** The following structures are reference structures.
|
*** The following structures are reference structures.
|
||||||
*** They are not essential to the API, but are used
|
*** They are not essential to the API, but are used
|
||||||
*** to hold the backend database format of the plugin
|
*** to hold the back end database format of the plugin
|
||||||
*** binary.
|
*** binary.
|
||||||
**********************************************/
|
**********************************************/
|
||||||
|
|
||||||
@ -78,7 +80,7 @@ typedef struct sp_plugin_s
|
|||||||
} sp_plugin_t;
|
} sp_plugin_t;
|
||||||
|
|
||||||
struct sp_context_s;
|
struct sp_context_s;
|
||||||
typedef int (*SPVM_NATIVE_FUNC)(struct sp_context_s *, cell_t *);
|
typedef cell_t (*SPVM_NATIVE_FUNC)(struct sp_context_s *, cell_t *);
|
||||||
|
|
||||||
/**********************************************
|
/**********************************************
|
||||||
*** The following structures are bound to the VM/JIT.
|
*** The following structures are bound to the VM/JIT.
|
||||||
@ -212,4 +214,3 @@ typedef struct sp_context_s
|
|||||||
} sp_context_t;
|
} sp_context_t;
|
||||||
|
|
||||||
#endif //_INCLUDE_SOURCEPAWN_VM_TYPES_H
|
#endif //_INCLUDE_SOURCEPAWN_VM_TYPES_H
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user