ADT
aaron-thesis
arm-eh
ast-experimental
cleanup-dtors
ctor
deferred_resn
demangler
enum
forall-pointer-decay
gc_noraii
jacob/cs343-translation
jenkins-sandbox
memory
new-ast
new-ast-unique-expr
new-env
no_list
persistent-indexer
pthread-emulation
qualifiedEnum
resolv-new
with_gc
|
Last change
on this file since f1e42c1 was f1e42c1, checked in by Thierry Delisle <tdelisle@…>, 10 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.