コード例 #1
0
ファイル: qas_angelwrap.cpp プロジェクト: hettoo/racesow
int qasReleaseContext( int contextHandle )
{
    contexthandle_t *prevhandle;
    contexthandle_t *ch = qasGetContextHandle( contextHandle );

    if( !ch )
        return QASINVALIDHANDLE;

    if( ch == contextHandlesHead )
    {
        contextHandlesHead = ch->next;
    }
    else
    {
        // find the handle that links our handle as next
        for( prevhandle = contextHandlesHead; prevhandle != NULL; prevhandle = prevhandle->next )
        {
            if( prevhandle->next == ch )
            {
                prevhandle->next = ch->next;
                break;
            }
        }
    }

    ch->ctx->Release();
    QAS_Free( ch );

    return 1;
}
コード例 #2
0
ファイル: qas_angelwrap.cpp プロジェクト: Racenet/racesow
int qasGetCallstackLineNumber( int contextHandle, int index )
{
	contexthandle_t *ch = qasGetContextHandle( contextHandle );
	if( !ch )
		return QASINVALIDHANDLE;

	return ch->ctx->GetCallstackLineNumber( index );
}
コード例 #3
0
ファイル: qas_angelwrap.cpp プロジェクト: hettoo/racesow
void *qasGetThisPointer( int contextHandle )
{
    contexthandle_t *ch = qasGetContextHandle( contextHandle );
    if( !ch )
        return NULL;

    return ch->ctx->GetThisPointer();
}
コード例 #4
0
ファイル: qas_angelwrap.cpp プロジェクト: hettoo/racesow
void *qasGetAddressOfVar( int contextHandle, int varIndex )
{
    contexthandle_t *ch = qasGetContextHandle( contextHandle );
    if( !ch )
        return NULL;

    return ch->ctx->GetAddressOfVar( varIndex );
}
コード例 #5
0
ファイル: qas_angelwrap.cpp プロジェクト: hettoo/racesow
const char *qasGetVarDeclaration( int contextHandle, int varIndex )
{
    contexthandle_t *ch = qasGetContextHandle( contextHandle );
    if( !ch )
        return NULL;

    return ch->ctx->GetVarDeclaration( varIndex );
}
コード例 #6
0
ファイル: qas_angelwrap.cpp プロジェクト: hettoo/racesow
const char *qasGetExceptionString( int contextHandle )
{
    contexthandle_t *ch = qasGetContextHandle( contextHandle );
    if( !ch )
        return NULL;

    return ch->ctx->GetExceptionString();
}
コード例 #7
0
ファイル: qas_angelwrap.cpp プロジェクト: hettoo/racesow
int qasGetExceptionLineNumber( int contextHandle )
{
    contexthandle_t *ch = qasGetContextHandle( contextHandle );
    if( !ch )
        return QASINVALIDHANDLE;

    return ch->ctx->GetExceptionLineNumber();
}
コード例 #8
0
ファイル: qas_angelwrap.cpp プロジェクト: hettoo/racesow
int qasSuspend( int contextHandle )
{
    contexthandle_t *ch = qasGetContextHandle( contextHandle );
    if( !ch )
        return QASINVALIDHANDLE;

    return ch->ctx->Suspend();
}
コード例 #9
0
ファイル: qas_angelwrap.cpp プロジェクト: hettoo/racesow
int qasSetArgAddress( int contextHandle, unsigned int arg, void *addr )
{
    contexthandle_t *ch = qasGetContextHandle( contextHandle );
    if( !ch )
        return QASINVALIDHANDLE;

    return ch->ctx->SetArgAddress( (asUINT)arg, addr );
}
コード例 #10
0
ファイル: qas_angelwrap.cpp プロジェクト: hettoo/racesow
int qasSetArgDouble( int contextHandle, unsigned int arg, double value )
{
    contexthandle_t *ch = qasGetContextHandle( contextHandle );
    if( !ch )
        return QASINVALIDHANDLE;

    return ch->ctx->SetArgDouble( (asUINT)arg, value );
}
コード例 #11
0
ファイル: qas_angelwrap.cpp プロジェクト: hettoo/racesow
int qasSetArgDWord( int contextHandle, unsigned int arg, unsigned int value )
{
    contexthandle_t *ch = qasGetContextHandle( contextHandle );
    if( !ch )
        return QASINVALIDHANDLE;

    return ch->ctx->SetArgDWord( (asUINT)arg, (asDWORD)value );
}
コード例 #12
0
ファイル: qas_angelwrap.cpp プロジェクト: hettoo/racesow
int qasSetArgByte( int contextHandle, unsigned int arg, unsigned char value )
{
    contexthandle_t *ch = qasGetContextHandle( contextHandle );
    if( !ch )
        return QASINVALIDHANDLE;

    return ch->ctx->SetArgByte( (asUINT)arg, (asBYTE)value );
}
コード例 #13
0
ファイル: qas_angelwrap.cpp プロジェクト: hettoo/racesow
int qasUnprepare( int contextHandle )
{
    contexthandle_t *ch = qasGetContextHandle( contextHandle );
    if( !ch )
        return QASINVALIDHANDLE;

    return ch->ctx->Unprepare();
}
コード例 #14
0
ファイル: qas_angelwrap.cpp プロジェクト: hettoo/racesow
int qasGetState( int contextHandle )
{
    contexthandle_t *ch = qasGetContextHandle( contextHandle );
    if( !ch )
        return QASINVALIDHANDLE;

    return (int)ch->ctx->GetState();
}
コード例 #15
0
ファイル: qas_angelwrap.cpp プロジェクト: hettoo/racesow
int qasGetEngine( int contextHandle )
{
    contexthandle_t *ch = qasGetContextHandle( contextHandle );
    if( !ch )
        return QASINVALIDHANDLE;

    return ch->owner;
}
コード例 #16
0
ファイル: qas_angelwrap.cpp プロジェクト: hettoo/racesow
void *qasGetReturnObject( int contextHandle )
{
    contexthandle_t *ch = qasGetContextHandle( contextHandle );
    if( !ch )
        return NULL;

    return ch->ctx->GetReturnObject();
}
コード例 #17
0
ファイル: qas_angelwrap.cpp プロジェクト: hettoo/racesow
void *qasGetAddressOfReturnValue( int contextHandle )
{
    contexthandle_t *ch = qasGetContextHandle( contextHandle );
    if( !ch )
        return NULL;

    return ch->ctx->GetAddressOfReturnValue();
}
コード例 #18
0
ファイル: qas_angelwrap.cpp プロジェクト: hettoo/racesow
int qasSetArgObject( int contextHandle, unsigned int arg, void *obj )
{
    contexthandle_t *ch = qasGetContextHandle( contextHandle );
    if( !ch )
        return QASINVALIDHANDLE;

    return ch->ctx->SetArgObject( (asUINT)arg, obj );
}
コード例 #19
0
ファイル: qas_angelwrap.cpp プロジェクト: hettoo/racesow
int qasSetException( int contextHandle, const char *string )
{
    contexthandle_t *ch = qasGetContextHandle( contextHandle );
    if( !ch )
        return QASINVALIDHANDLE;

    return ch->ctx->SetException( string );
}
コード例 #20
0
ファイル: qas_angelwrap.cpp プロジェクト: hettoo/racesow
void *qasGetAddressOfArg( int contextHandle, unsigned int arg )
{
    contexthandle_t *ch = qasGetContextHandle( contextHandle );
    if( !ch )
        return NULL;

    return ch->ctx->GetAddressOfArg( (asUINT)arg );
}
コード例 #21
0
ファイル: qas_angelwrap.cpp プロジェクト: hettoo/racesow
void *qasGetExceptionFunction( int contextHandle )
{
    contexthandle_t *ch = qasGetContextHandle( contextHandle );
    if( !ch )
        return NULL;

    return static_cast<void*>( ch->ctx->GetExceptionFunction() );
}
コード例 #22
0
ファイル: qas_angelwrap.cpp プロジェクト: hettoo/racesow
int qasSetObject( int contextHandle, void *obj )
{
    contexthandle_t *ch = qasGetContextHandle( contextHandle );
    if( !ch )
        return QASINVALIDHANDLE;

    return ch->ctx->SetObject( obj );
}
コード例 #23
0
ファイル: qas_angelwrap.cpp プロジェクト: hettoo/racesow
int qasGetVarCount( int contextHandle )
{
    contexthandle_t *ch = qasGetContextHandle( contextHandle );
    if( !ch )
        return QASINVALIDHANDLE;

    return ch->ctx->GetVarCount();
}
コード例 #24
0
ファイル: qas_angelwrap.cpp プロジェクト: hettoo/racesow
unsigned int qasGetReturnBool( int contextHandle )
{
    contexthandle_t *ch = qasGetContextHandle( contextHandle );
    if( !ch )
        QAS_Error( "qasGetReturnBool: invalid context\n" );

    return (unsigned char)ch->ctx->GetReturnByte();
}
コード例 #25
0
ファイル: qas_angelwrap.cpp プロジェクト: hettoo/racesow
int qasGetVarTypeId( int contextHandle, int varIndex )
{
    contexthandle_t *ch = qasGetContextHandle( contextHandle );
    if( !ch )
        return QASINVALIDHANDLE;

    return ch->ctx->GetVarTypeId( varIndex );
}
コード例 #26
0
ファイル: qas_angelwrap.cpp プロジェクト: hettoo/racesow
unsigned int qasGetReturnDWord( int contextHandle )
{
    contexthandle_t *ch = qasGetContextHandle( contextHandle );
    if( !ch )
        QAS_Error( "qasGetReturnDWord: invalid context\n" );

    return (unsigned int)ch->ctx->GetReturnDWord();
}
コード例 #27
0
ファイル: qas_angelwrap.cpp プロジェクト: hettoo/racesow
int qasGetThisTypeId( int contextHandle )
{
    contexthandle_t *ch = qasGetContextHandle( contextHandle );
    if( !ch )
        return QASINVALIDHANDLE;

    return ch->ctx->GetThisTypeId();
}
コード例 #28
0
ファイル: qas_angelwrap.cpp プロジェクト: hettoo/racesow
quint64 qasGetReturnQWord( int contextHandle )
{
    contexthandle_t *ch = qasGetContextHandle( contextHandle );
    if( !ch )
        QAS_Error( "qasGetReturnQWord: invalid context\n" );

    return ch->ctx->GetReturnQWord();
}
コード例 #29
0
ファイル: qas_angelwrap.cpp プロジェクト: hettoo/racesow
double qasGetReturnDouble( int contextHandle )
{
    contexthandle_t *ch = qasGetContextHandle( contextHandle );
    if( !ch )
        return QASINVALIDHANDLE;

    return ch->ctx->GetReturnDouble();
}
コード例 #30
0
ファイル: qas_angelwrap.cpp プロジェクト: Racenet/racesow
int qasGetCallstackSize( int contextHandle )
{
	contexthandle_t *ch = qasGetContextHandle( contextHandle );
	if( !ch )
		return QASINVALIDHANDLE;

	return ch->ctx->GetCallstackSize();
}