implemented amb1514 - SM_PARAM_STRING_BINARY (bumped ISourceMod for this)

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401932
This commit is contained in:
David Anderson
2008-03-12 04:06:32 +00:00
parent aed775162c
commit 100c3ae389
4 changed files with 42 additions and 8 deletions
+1 -1
View File
@@ -43,7 +43,7 @@
#include <time.h>
#define SMINTERFACE_SOURCEMOD_NAME "ISourceMod"
#define SMINTERFACE_SOURCEMOD_VERSION 6
#define SMINTERFACE_SOURCEMOD_VERSION 7
/**
* @brief Forward declaration of the KeyValues class.
+7 -1
View File
@@ -61,9 +61,13 @@ namespace SourcePawn
{
class IVirtualMachine;
/* Parameter flags */
#define SM_PARAM_COPYBACK (1<<0) /**< Copy an array/reference back after call */
/* String parameter flags (separate from parameter flags) */
#define SM_PARAM_STRING_UTF8 (1<<0) /**< String should be UTF-8 handled */
#define SM_PARAM_STRING_COPY (1<<1) /**< String should be copied into the plugin */
#define SM_PARAM_STRING_BINARY (1<<2) /**< String should be handled as binary data */
#if defined SOURCEMOD_BUILD
/**
@@ -151,11 +155,13 @@ namespace SourcePawn
/**
* @brief Pushes a string or string buffer.
*
* NOTE: On Execute, the pointer passed will be modified if copy-back is enabled.
*
* @param buffer Pointer to string buffer.
* @param length Length of buffer.
* @param sz_flags String flags.
* @param sz_flags String flags. In copy mode, the string will be copied
* according to the handling (ascii, utf-8, binary, etc).
* @param cp_flags Copy-back flags.
* @return Error code, if any.
*/