rewrite of the native and dependency binding/interaction code. this will ease the transition for native overrides, and greatly simplifies most of the logic. all native binding code now takes place almost entirely in ShareSys, and PluginSys supplements this logic where appropriate. extensionsys has been cleaned up
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%402198
This commit is contained in:
@@ -44,7 +44,7 @@
|
||||
#define SOURCEPAWN_ENGINE_API_VERSION 3
|
||||
|
||||
/** SourcePawn VM API Version */
|
||||
#define SOURCEPAWN_VM_API_VERSION 6
|
||||
#define SOURCEPAWN_VM_API_VERSION 7
|
||||
|
||||
#if !defined SOURCEMOD_BUILD
|
||||
#define SOURCEMOD_BUILD
|
||||
@@ -500,22 +500,18 @@ namespace SourcePawn
|
||||
virtual int PushCellsFromArray(cell_t array[], unsigned int numcells) =0;
|
||||
|
||||
/**
|
||||
* @brief Binds a list of native names and their function pointers to a context.
|
||||
* If num is 0, the list is read until an entry with a NULL name is reached.
|
||||
* If overwrite is non-zero, already registered natives will be overwritten.
|
||||
* @brief Deprecated; do not use.
|
||||
*
|
||||
* @param natives Array of natives.
|
||||
* @param num Number of natives in array.
|
||||
* @param overwrite Toggles overwrite.
|
||||
* @param natives Deprecated; do not use.
|
||||
* @param num Deprecated; do not use.
|
||||
* @param overwrite Deprecated; do not use.
|
||||
*/
|
||||
virtual int BindNatives(const sp_nativeinfo_t *natives, unsigned int num, int overwrite) =0;
|
||||
|
||||
/**
|
||||
* @brief Binds a single native. Overwrites any existing bind.
|
||||
* If the context does not contain the native that will be binded the function will return
|
||||
* with a SP_ERROR_NOT_FOUND error.
|
||||
* @brief Deprecated; do not use.
|
||||
*
|
||||
* @param native Pointer to native.
|
||||
* @param native Deprecated; do not use.
|
||||
*/
|
||||
virtual int BindNative(const sp_nativeinfo_t *native) =0;
|
||||
|
||||
@@ -599,10 +595,10 @@ namespace SourcePawn
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Binds a single native to a given native index.
|
||||
* @brief Deprecated; do not use.
|
||||
*
|
||||
* @param index Index to bind at.
|
||||
* @param native Native function to bind.
|
||||
* @param index Deprecated; do not use.
|
||||
* @param native Deprecated; do not use.
|
||||
*/
|
||||
virtual int BindNativeToIndex(uint32_t index, SPVM_NATIVE_FUNC native) =0;
|
||||
|
||||
|
||||
@@ -203,6 +203,7 @@ typedef struct sp_native_s
|
||||
const char * name; /**< Name of function */
|
||||
uint32_t status; /**< Status flags */
|
||||
uint32_t flags; /**< Native flags */
|
||||
void * user; /**< Host-specific data */
|
||||
} sp_native_t;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user