rincewind wrote: |
inline bool Match(TypeWrapper,HSQUIRRELVM v,int idx) {
return sq_gettype(v,idx) == OT_STRING;
}
inline ::String Get(TypeWrapper,HSQUIRRELVM v,int idx)
{
const SQChar * s;
SQPLUS_CHECK_GET(sq_getstring(v,idx,&s));
return std::string(s);
}
inline void Push(HSQUIRRELVM v,const std::string& value) { sq_pushstring(v,value.c_str(),-1); } |
|
I downloaded sqplus from the Wiki, and the above code is not there - can I just add it to the other match functions somewhere in sqplus?
Otherwise: I love Squirrel!
Squirrel won in tough competion between GameMonkey Script and Angelscript. Great job!
And sqplus was what made me decide.