コード例 #1
0
 ::QScriptValue sipQScriptClass::prototype() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[3]),sipPySelf,NULL,sipName_prototype);

    if (!sipMeth)
        return  ::QScriptClass::prototype();

    extern  ::QScriptValue sipVH_QtScript_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtScript_5(sipGILState, 0, sipPySelf, sipMeth);
}
コード例 #2
0
void sipQScriptEngineAgent::functionEntry(qint64 a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_functionEntry);

    if (!meth)
    {
        QScriptEngineAgent::functionEntry(a0);
        return;
    }

    extern void sipVH_QtScript_5(sip_gilstate_t,PyObject *,PY_LONG_LONG);

    sipVH_QtScript_5(sipGILState,meth,a0);
}