Last change
on this file since 083e637 was
c715e5f,
checked in by Andrew Beach <ajbeach@…>, 2 years ago
|
Removed most of the exception macros (EHM_ group). Made changes to the exception declaration pass to do so.
|
-
Property mode set to
100644
|
File size:
736 bytes
|
Rev | Line | |
---|
[5715d43] | 1 | // |
---|
| 2 | // Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo |
---|
| 3 | // |
---|
| 4 | // The contents of this file are covered under the licence agreement in the |
---|
| 5 | // file "LICENCE" distributed with Cforall. |
---|
| 6 | // |
---|
| 7 | // exception-nothreads.cfa -- |
---|
| 8 | // |
---|
| 9 | // Author : Andrew Beach |
---|
| 10 | // Created On : Thr 13 16:12:00 2020 |
---|
| 11 | // Last Modified By : Andrew Beach |
---|
| 12 | // Last Modified On : Thr 13 16:49:00 2020 |
---|
| 13 | // Update Count : 0 |
---|
| 14 | // |
---|
| 15 | |
---|
| 16 | #include <stdlib.hfa> |
---|
| 17 | |
---|
[c715e5f] | 18 | exception ping {}; |
---|
| 19 | vtable(ping) ping_vt; |
---|
[5715d43] | 20 | |
---|
| 21 | int main(void) { |
---|
| 22 | try { |
---|
[ecfd758] | 23 | throwResume (ping){&ping_vt}; |
---|
[5715d43] | 24 | } catchResume (ping *) { |
---|
| 25 | printf("%s threads\n", threading_enabled() ? "with" : "no"); |
---|
| 26 | } |
---|
| 27 | return 0; |
---|
| 28 | } |
---|
| 29 | |
---|
| 30 | // Local Variables: // |
---|
| 31 | // tab-width: 4 // |
---|
| 32 | // compile-command: "cfa nothreads.cfa" // |
---|
| 33 | // End: // |
---|
Note: See
TracBrowser
for help on using the repository browser.