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"
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
);
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) */