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
|
Rev | Line | |
---|
[15db1ab] | 1 | #pragma once |
---|
| 2 | |
---|
| 3 | #include "gcpointers.h" |
---|
[f1e42c1] | 4 | #include "internal/collector.h" |
---|
[15db1ab] | 5 | |
---|
[f1e42c1] | 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.