2016-10-07 Steven G. Kargl <kargl@gcc.gnu.org>
[official-gcc.git] / libgo / runtime / go-panic.h
blob1b172d92db9cf2910d2c1cf0cf68f8b1ca86e113
1 /* go-panic.h -- declare the go panic functions.
3 Copyright 2009 The Go Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style
5 license that can be found in the LICENSE file. */
7 #ifndef LIBGO_GO_PANIC_H
8 #define LIBGO_GO_PANIC_H
10 #include "interface.h"
12 struct String;
13 struct __go_type_descriptor;
15 extern void __go_panic (struct __go_empty_interface)
16 __attribute__ ((noreturn));
18 extern void __go_print_string (struct String);
20 extern struct __go_empty_interface __go_recover (void);
22 extern _Bool __go_can_recover (void *);
24 extern void __go_makefunc_can_recover (void *retaddr);
26 struct location;
27 extern void __go_makefunc_ffi_can_recover (struct location *, int);
29 extern void __go_makefunc_returning (void);
31 extern void __go_unwind_stack (void);
33 #endif /* !defined(LIBGO_GO_PANIC_H) */