Changeset 7e4b44db for src/Common/GC.cc


Ignore:
Timestamp:
Mar 22, 2018, 1:20:29 PM (6 years ago)
Author:
Aaron Moss <a3moss@…>
Branches:
new-env, with_gc
Children:
bd06384
Parents:
8d7bef2
Message:

Make Constant no longer BaseSyntaxNode?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Common/GC.cc

    r8d7bef2 r7e4b44db  
    1717
    1818#include <algorithm>
     19#include <cassert>
    1920
    2021GC& GC::get() {
     
    101102}
    102103
     104bool stack_check( int* i, GC_Object* o ) {
     105        int j;
     106        return ( i < &j ) == ( (void*)o < (void*)&j );
     107}
     108
    103109GC_Object::GC_Object() {
    104110        GC::get().register_object( this );
     111
     112        int i;
     113        assert(!stack_check(&i, this));
    105114}
    106115
Note: See TracChangeset for help on using the changeset viewer.