source: src/examples/gc_no_raii/src/gc.h @ bf5a70da

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsctordeferred_resndemanglerenumforall-pointer-decaygc_noraiijacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newwith_gc
Last change on this file since bf5a70da was f1e42c1, checked in by Thierry Delisle <tdelisle@…>, 8 years ago

added some basic tests and modified compilation to support them

  • Property mode set to 100644
File size: 246 bytes
Line 
1#pragma once
2
3#include "gcpointers.h"
4#include "internal/collector.h"
5
6forall(otype T)
7static inline gcpointer(T) gcmalloc()
8{
9    gcpointer(T) test;
10    // ctor(&test, gc_allocate(sizeof(T)));
11    // gc_conditional_collect();
12    return test;
13}
Note: See TracBrowser for help on using the repository browser.