Changeset 29ad0ac for src/examples/gc_no_raii/src/gcpointers.c
- Timestamp:
- Apr 15, 2016, 3:04:25 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, 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, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 356bb95
- Parents:
- 0f9e4403
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/examples/gc_no_raii/src/gcpointers.c
r0f9e4403 r29ad0ac 4 4 #include "internal/collector.h" 5 5 #include "internal/object_header.h" 6 //#include "internal/state.h"6 #include "internal/state.h" 7 7 8 8 // void register_ptr(gcpointer_t* this) … … 12 12 // _Bool managed = gc_is_managed(this); 13 13 // 14 // 15 // gc_state* state = gc_get_state(); 16 // gc_object_header* obj = 0; 14 17 // if(managed) 15 18 // { 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); 17 20 // check(obj); 18 21 // check(gc_obj_is_valide(obj)); … … 24 27 // else 25 28 // { 26 // gc_object_header* obj = gc_get_object_ptr((void*)this->ptr);29 // obj = gc_get_object_ptr(state, (void*)this->ptr); 27 30 // check(obj); 28 31 // check(gc_obj_is_valide(obj));
Note: See TracChangeset
for help on using the changeset viewer.