source: src/examples/gc_no_raii/src/gcpointers.h @ 9026b4b

aaron-thesisarm-ehcleanup-dtorsctordeferred_resndemanglerenumforall-pointer-decaygc_noraiijacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerresolv-newwith_gc
Last change on this file since 9026b4b was 385c130, checked in by Thierry Delisle <tdelisle@…>, 6 years ago

pre merge

  • Property mode set to 100644
File size: 596 bytes
Line 
1#pragma once
2
3#include <stdint.h>
4
5struct gcpointer_t
6{
7        intptr_t ptr;
8        struct gcpointer_t* next;
9};
10
11void gcpointer_ctor(gcpointer_t* this);
12void gcpointer_ctor(gcpointer_t* ptr, int null);
13void gcpointer_ctor(gcpointer_t* this, void* address);
14void gcpointer_ctor(gcpointer_t* this, gcpointer_t* other);
15
16void gcpointer_dtor(gcpointer_t* this);
17
18gcpointer_t* gcpointer_assign(gcpointer_t* this, gcpointer_t* rhs);
19
20//Logical operators
21int gcpointer_equal(gcpointer_t* this, gcpointer_t* rhs);
22int gcpointer_not_equal(gcpointer_t* this, gcpointer_t* rhs);
23int gcpointer_null(gcpointer_t* this);
Note: See TracBrowser for help on using the repository browser.