(svn r23597) -Codechange: fix up squirrel export script a bit

This commit is contained in:
truebrain
2011-12-19 20:44:31 +00:00
parent ae5e6af6e3
commit 3c7627fb7f
3 changed files with 9 additions and 9 deletions

View File

@@ -109,7 +109,9 @@ namespace SQConvert {
template <> inline void *GetParam(ForceType<void *> , HSQUIRRELVM vm, int index, SQAutoFreePointers *ptr) { SQUserPointer tmp; sq_getuserpointer(vm, index, &tmp); return tmp; }
template <> inline const char *GetParam(ForceType<const char *>, HSQUIRRELVM vm, int index, SQAutoFreePointers *ptr)
{
/* Convert what-ever there is as parameter to a string */
sq_tostring(vm, index);
const SQChar *tmp;
sq_getstring(vm, -1, &tmp);
char *tmp_str = strdup(SQ2OTTD(tmp));