Eneboo - Documentación para desarrolladores
|
#include "qsnodes.h"
#include "qsclass.h"
#include "qsenv.h"
#include "qsengine.h"
#include "qslexer.h"
#include "qsinternal.h"
#include "qsoperations.h"
#include "qsobject_object.h"
#include "qsregexp_object.h"
#include "qsdebugger.h"
#include "qsfuncref.h"
#include "qserror_object.h"
#include <qapplication.h>
#include "quickobjects.h"
#include <math.h>
'defines' | |
#define | QSA_NUMBER_OPTIMIZATION |
#define | QSBREAKPOINT(e) |
#define | QSABORTPOINT(e) |
#define | QSA_EVENT_TRIGGER_IMPL |
#define | updateErrorline() |
#define | ref_printf(a, b, c, d) |
#define | QSNODE_REF_IMPL_1(name, node1) |
#define | QSNODE_REF_IMPL_2(name, node1, node2) |
#define | QSNODE_REF_IMPL_3(name, node1, node2, node3) |
#define | QSNODE_REF_IMPL_4(name, node1, node2, node3, node4) |
#define QSA_EVENT_TRIGGER_IMPL |
if (env->engine()->timeoutTrigger()) \
env->engine()->timeoutTrigger()->fireTimeout();
#define QSA_NUMBER_OPTIMIZATION |
#define QSABORTPOINT | ( | e | ) |
#define QSBREAKPOINT | ( | e | ) |
#define QSNODE_REF_IMPL_1 | ( | name, | |
node1 | |||
) |
void name::ref() { \ ref_printf(#name "::ref(%p) count: %d -> %d\n", this, refCount, refCount+1); \ if (node1) node1->ref(); \ QSNode::ref(); \ } \ bool name::deref() { \ ref_printf(#name "::deref(%p): count: %d -> %d\n", this, refCount, refCount-1); \ if (node1 && node1->deref()) { delete node1; node1 = 0; }\ return QSNode::deref(); \ }
#define QSNODE_REF_IMPL_2 | ( | name, | |
node1, | |||
node2 | |||
) |
void name::ref() { \ ref_printf(#name "::ref(%p) count: %d -> %d\n", this, refCount, refCount+1); \ if (node1) node1->ref(); \ if (node2) node2->ref(); \ QSNode::ref(); \ } \ bool name::deref() { \ ref_printf(#name "::deref(%p): count: %d -> %d\n", this, refCount, refCount-1); \ if (node1 && node1->deref()) { delete node1; node1 = 0; } \ if (node2 && node2->deref()) { delete node2; node2 = 0; } \ return QSNode::deref(); \ }
#define QSNODE_REF_IMPL_3 | ( | name, | |
node1, | |||
node2, | |||
node3 | |||
) |
void name::ref() { \ ref_printf(#name "::ref(%p) count: %d -> %d\n", this, refCount, refCount+1); \ if (node1) node1->ref(); \ if (node2) node2->ref(); \ if (node3) node3->ref(); \ QSNode::ref(); \ } \ bool name::deref() { \ ref_printf(#name "::deref(%p): count: %d -> %d\n", this, refCount, refCount-1); \ if (node1 && node1->deref()) { delete node1; node1 = 0; }\ if (node2 && node2->deref()) { delete node2; node2 = 0; }\ if (node3 && node3->deref()) { delete node3; node3 = 0; }\ return QSNode::deref(); \ }
#define QSNODE_REF_IMPL_4 | ( | name, | |
node1, | |||
node2, | |||
node3, | |||
node4 | |||
) |
void name::ref() { \ ref_printf(#name "::ref(%p) count: %d -> %d\n", this, refCount, refCount+1); \ if (node1) node1->ref(); \ if (node2) node2->ref(); \ if (node3) node3->ref(); \ if (node4) node4->ref(); \ QSNode::ref(); \ } \ bool name::deref() { \ ref_printf(#name "::deref(%p): count: %d -> %d\n", this, refCount, refCount-1); \ if (node1 && node1->deref()) { delete node1; node1 = 0; }\ if (node2 && node2->deref()) { delete node2; node2 = 0; }\ if (node3 && node3->deref()) { delete node3; node3 = 0; }\ if (node4 && node4->deref()) { delete node4; node4 = 0; }\ return QSNode::deref(); \ }
#define updateErrorline | ( | ) |
if( env->isExceptionMode() ) { \ QSObject err = env->exception(); \ int line = QSErrorClass::errorLine(&err); \ if( line==-1 ) \ QSErrorClass::setErrorLine(&err, lineNo()); \ }