Example #1
0
Term::Term(Block* _parent)
  : type(NULL),
    function(NULL),
    uniqueOrdinal(0),
    owningBlock(_parent),
    index(0),
    nestedContents(NULL)
{
    id = _parent->world->nextTermID++;

    set_hashtable(&properties);

    if (id == DEBUG_BREAK_ON_TERM)
        ca_debugger_break();
}
Example #2
0
Term::Term()
  : weakPtr(0),
    type(NULL),
    function(NULL),
    nameSymbol(name_None),
    owningBranch(NULL),
    index(0),
    nestedContents(NULL),
    flags(0)
{
    id = gNextGlobalID++;

    debug_register_valid_object(this, TERM_OBJECT);

    if (id == DEBUG_BREAK_ON_TERM)
        ca_debugger_break();
}