added automatic native registration
added string include file renamed typeutil and its functions redid a bunch of the string natives string natives now register --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40238
This commit is contained in:
@@ -3,11 +3,11 @@
|
||||
|
||||
#include "sp_vm_types.h"
|
||||
|
||||
inline cell_t ftoc(float val)
|
||||
inline cell_t sp_ftoc(float val)
|
||||
{
|
||||
return *(cell_t *)&val;
|
||||
}
|
||||
inline float ctof(cell_t val)
|
||||
inline float sp_ctof(cell_t val)
|
||||
{
|
||||
return *(float *)&val;
|
||||
}
|
||||
@@ -7,6 +7,8 @@ typedef uint32_t ucell_t;
|
||||
typedef int32_t cell_t;
|
||||
typedef uint32_t funcid_t;
|
||||
|
||||
#include "sp_typeutil.h"
|
||||
|
||||
#define SP_MAX_EXEC_PARAMS 32 /* Maximum number of parameters in a function */
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user