Exemplo n.º 1
0
static SQInteger _system_system(HSQUIRRELVM v)
{
    const SQChar *s;
    if(SQ_SUCCEEDED(sq_getstring(v,2,&s))){
        sq_pushinteger(v,scsystem(s));
        return 1;
    }
    return sq_throwerror(v,_SC("wrong param"));
}
Exemplo n.º 2
0
static PSInteger _system_system(HPSCRIPTVM v)
{
    const PSChar *s;
    if(PS_SUCCEEDED(ps_getstring(v,2,&s))){
        ps_pushinteger(v,scsystem(s));
        return 1;
    }
    return ps_throwerror(v,_SC("wrong param"));
}