Changeset f1e42c1 for src/examples/gc_no_raii/src/gcpointers.c
- Timestamp:
- May 12, 2016, 10:14:36 AM (7 years ago)
- Branches:
- ADT, 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, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- bf5a70da
- Parents:
- 273080f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/examples/gc_no_raii/src/gcpointers.c
r273080f rf1e42c1 84 84 85 85 //Logical operators 86 intgcpointer_equal(gcpointer_t* this, gcpointer_t* rhs)86 bool gcpointer_equal(gcpointer_t* this, gcpointer_t* rhs) 87 87 { 88 88 return this->ptr == rhs->ptr; 89 89 } 90 90 91 intgcpointer_not_equal(gcpointer_t* this, gcpointer_t* rhs)91 bool gcpointer_not_equal(gcpointer_t* this, gcpointer_t* rhs) 92 92 { 93 93 return this->ptr != rhs->ptr; 94 94 } 95 95 96 intgcpointer_null(gcpointer_t* this)96 bool gcpointer_null(gcpointer_t* this) 97 97 { 98 98 return this->ptr == (intptr_t)NULL;
Note: See TracChangeset
for help on using the changeset viewer.