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:
@@ -193,6 +193,10 @@
|
||||
RelativePath="..\sp_vm.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\sp_vm_debug.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\include\sp_vm_types.h"
|
||||
>
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user