Ignore:
Timestamp:
Jan 19, 2016, 4:07:06 PM (8 years ago)
Author:
Thierry Delisle <tdelisle@…>
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:
08a40fd
Parents:
a2b2761
Message:

gcpointers.c compiles

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/examples/gc_no_raii/src/internal/object_header.h

    ra2b2761 r6be0cf9  
    66#include "tools.h"
    77
    8 static const void* CANARY_VALUE = (void*)0xCAFEBABACAFEBABA;
     8#if DEBUG
     9        static const void* CANARY_VALUE = (void*)0xCAFEBABACAFEBABA;
     10#endif
    911
    1012struct gcpointer_t;
     13struct gc_object_header;
    1114
    1215struct gc_object_header
    1316{
    14         #if _DEBUG
     17        #if DEBUG
    1518                void* canary_start;
    1619        #endif
    1720
    18         size_t                          size;
    19         gcpointer_t*                    root_chain;
    20         gcpointer_t*                    type_chain;
    21         struct gc_object_header*        forward;
    22         bool                                    is_forwarded;
     21        size_t          size;
     22        gcpointer_t*    root_chain;
     23        gcpointer_t*    type_chain;
     24        gc_object_header*       forward;
     25        bool                    is_forwarded;
    2326
    24         #if _DEBUG
     27        #if DEBUG
    2528                void* canary_end;
    2629        #endif
    2730};
     31
     32gc_object_header* gc_object_header_placement_ctor(void* address, size_t size);
Note: See TracChangeset for help on using the changeset viewer.