|
Revision 30, 422 bytes
(checked in by KirkMcDonald, 2 years ago)
|
Inroads on Linux support.
|
| Line | |
|---|
| 1 |
// This file requires the .so be compiled with '-nostartfiles'. |
|---|
| 2 |
// Also note that this is inferior to the Windows version: it does not call the |
|---|
| 3 |
// static constructors or unit tests. As far as I can tell, this can't be done |
|---|
| 4 |
// until Phobos is updated to explicitly allow it. |
|---|
| 5 |
extern(C) { |
|---|
| 6 |
|
|---|
| 7 |
void gc_init(); |
|---|
| 8 |
void gc_term(); |
|---|
| 9 |
|
|---|
| 10 |
void _init() { |
|---|
| 11 |
gc_init(); |
|---|
| 12 |
} |
|---|
| 13 |
|
|---|
| 14 |
void _fini() { |
|---|
| 15 |
gc_term(); |
|---|
| 16 |
} |
|---|
| 17 |
|
|---|
| 18 |
} /* extern(C) */ |
|---|