Changeset 557:aef77ae1d32c
- Timestamp:
- 08/29/08 08:16:18
(4 years ago)
- Author:
- Christian Kamm <kamm incasoftware de>
- branch:
- default
- Message:
Enable unwind code on darwin.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r495 |
r557 |
|
| 10 | 10 | // debug = EH_personality; |
|---|
| 11 | 11 | |
|---|
| 12 | | // current EH implementation works on x86 linux only |
|---|
| 13 | | version(X86) version(linux) version=X86_LINUX; |
|---|
| | 12 | // current EH implementation works on x86 |
|---|
| | 13 | // if it has a working unwind runtime |
|---|
| | 14 | version(X86) { |
|---|
| | 15 | version(linux) version=X86_UNWIND; |
|---|
| | 16 | version(darwin) version=X86_UNWIND; |
|---|
| | 17 | } |
|---|
| 14 | 18 | |
|---|
| 15 | 19 | private extern(C) void abort(); |
|---|
| … | … | |
| 58 | 62 | } |
|---|
| 59 | 63 | |
|---|
| 60 | | version(X86_LINUX) |
|---|
| | 64 | version(X86_UNWIND) |
|---|
| 61 | 65 | { |
|---|
| 62 | 66 | void _Unwind_Resume(_Unwind_Exception*); |
|---|
| … | … | |
| 162 | 166 | |
|---|
| 163 | 167 | // |
|---|
| 164 | | // x86 Linux specific implementation of personality function |
|---|
| | 168 | // x86 unwind specific implementation of personality function |
|---|
| 165 | 169 | // and helpers |
|---|
| 166 | 170 | // |
|---|
| 167 | | version(X86_LINUX) |
|---|
| | 171 | version(X86_UNWIND) |
|---|
| 168 | 172 | { |
|---|
| 169 | 173 | |
|---|