added core debug api

added missing setstring function

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%4060
This commit is contained in:
David Anderson
2006-08-06 18:37:14 +00:00
parent 2665d13475
commit 28736ae60c
4 changed files with 26 additions and 1 deletions
+4
View File
@@ -193,6 +193,10 @@
RelativePath="..\sp_vm.h"
>
</File>
<File
RelativePath="..\sp_vm_debug.h"
>
</File>
<File
RelativePath="..\..\include\sp_vm_types.h"
>
+1
View File
@@ -1,6 +1,7 @@
#include <limits.h>
#include <string.h>
#include <assert.h>
#include <malloc.h>
#include "sp_vm.h"
#define CELLBOUNDMAX (INT_MAX/sizeof(cell_t))
+13
View File
@@ -186,6 +186,19 @@ int SP_LocalToString(sp_context_t *ctx,
char *buffer,
size_t maxlength);
/**
* Converts a physical string to a local address.
* Note that SourcePawn does not support packed strings.
* @param ctx Context pointer
* @param local_addr Local address in plugin.
* @param chars Number of chars to write, including NULL terminator.
* @param source Source string to copy.
*/
int SP_StringToLocal(sp_context_t *ctx,
cell_t local_addr,
size_t chars,
const char *source);
/**
* Pushes a cell onto the stack. Increases the parameter count by one.
*