Ignore:
Timestamp:
Apr 15, 2016, 3:04:25 PM (6 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
356bb95
Parents:
0f9e4403
Message:

some regression testing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/examples/gc_no_raii/src/gcpointers.c

    r0f9e4403 r29ad0ac  
    44#include "internal/collector.h"
    55#include "internal/object_header.h"
    6 // #include "internal/state.h"
     6#include "internal/state.h"
    77
    88// void register_ptr(gcpointer_t* this)
     
    1212//      _Bool managed = gc_is_managed(this);
    1313//
     14//
     15//      gc_state* state = gc_get_state();
     16//      gc_object_header* obj = 0;
    1417//      if(managed)
    1518//      {
    16 //              gc_object_header* obj = gc_get_object_for_ref(gc_get_state(), (void*)this);
     19//              obj = gc_get_object_for_ref(state, (void*)this);
    1720//              check(obj);
    1821//              check(gc_obj_is_valide(obj));
     
    2427//      else
    2528//      {
    26 //              gc_object_header* obj = gc_get_object_ptr((void*)this->ptr);
     29//              obj = gc_get_object_ptr(state, (void*)this->ptr);
    2730//              check(obj);
    2831//              check(gc_obj_is_valide(obj));
Note: See TracChangeset for help on using the changeset viewer.