source: src/examples/gc_no_raii/internal/object_header.h @ e47f529

aaron-thesisarm-ehcleanup-dtorsctordeferred_resndemanglerenumforall-pointer-decaygc_noraiijacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationresolv-newwith_gc
Last change on this file since e47f529 was e47f529, checked in by Thierry Delisle <tdelisle@…>, 7 years ago

more conversion and compile seems to work well

  • Property mode set to 100644
File size: 404 bytes
Line 
1#pragma once
2
3#include <stddef.h>
4#include <stdint.h>
5
6#include "tools.h"
7
8static const void* CANARY_VALUE = (void*)0xCAFEBABACAFEBABA;
9
10struct gcpointer_t;
11
12struct gc_object_header
13{
14        #if _DEBUG
15                void* canary_start;
16        #endif
17
18        size_t                          size;
19        gcpointer_t*                    root_chain;
20        gcpointer_t*                    type_chain;
21        struct gc_object_header*        forward;
22        bool                                    is_forwarded;
23
24        #if _DEBUG
25                void* canary_end;
26        #endif
27};
Note: See TracBrowser for help on using the repository browser.