Skip to content


Subversion checkout URL

You can clone with
Download ZIP
tree: a4fca2c402
Fetching contributors…

Cannot retrieve contributors at this time

34 lines (30 sloc) 0.817 kB
#include "Common.h"
#include "Slot.h"
#include <PyrKernel.h>
#include <VMGlobals.h>
#include <PyrLexer.h>
// WARNING: QtCollider::lockLang() must be called before
void QtCollider::runLang (
PyrObjectHdr *receiver,
PyrSymbol *method,
const QList<QVariant> & args,
PyrSlot *result )
VMGlobals *g = gMainVMGlobals;
g->canCallOS = true;
++g->sp; SetObject(g->sp, receiver);
Q_FOREACH( QVariant var, args ) {
if( !Slot::setVariant( g->sp, var ) )
SetNil( g->sp );
runInterpreter(g, method, args.size() + 1);
g->canCallOS = false;
if (result) slotCopy(result, &g->result);
int QtCollider::wrongThreadError ()
qcErrorMsg( "You can not use this Qt functionality in the current thread. "
"Try scheduling on AppClock instead." );
return errFailed;
Jump to Line
Something went wrong with that request. Please try again.