ADTaaron-thesisarm-ehcleanup-dtorsctordeferred_resndemanglerenumforall-pointer-decaygc_noraiijacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newwith_gc
Last change
on this file since f1e42c1 was
f1e42c1,
checked in by Thierry Delisle <tdelisle@…>, 7 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 | |
---|
6 | forall(otype T) |
---|
7 | static 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.