OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libgo/] [runtime/] [go-panic.h] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 747 jeremybenn
/* go-panic.h -- declare the go panic functions.
2
 
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.  */
6
 
7
#ifndef LIBGO_GO_PANIC_H
8
#define LIBGO_GO_PANIC_H
9
 
10
#include "interface.h"
11
 
12
struct __go_string;
13
struct __go_type_descriptor;
14
struct __go_defer_stack;
15
 
16
/* The stack of panic calls.  */
17
 
18
struct __go_panic_stack
19
{
20
  /* The next entry in the stack.  */
21
  struct __go_panic_stack *__next;
22
 
23
  /* The value associated with this panic.  */
24
  struct __go_empty_interface __arg;
25
 
26
  /* Whether this panic has been recovered.  */
27
  _Bool __was_recovered;
28
 
29
  /* Whether this panic was pushed on the stack because of an
30
     exception thrown in some other language.  */
31
  _Bool __is_foreign;
32
};
33
 
34
extern void __go_panic (struct __go_empty_interface)
35
  __attribute__ ((noreturn));
36
 
37
extern void __go_print_string (struct __go_string);
38
 
39
extern struct __go_empty_interface __go_recover (void);
40
 
41
extern void __go_unwind_stack (void);
42
 
43
/* Functions defined in libgo/go/runtime/error.go.  */
44
 
45
extern void newTypeAssertionError(const struct __go_type_descriptor *pt1,
46
                                  const struct __go_type_descriptor *pt2,
47
                                  const struct __go_type_descriptor *pt3,
48
                                  const struct __go_string *ps1,
49
                                  const struct __go_string *ps2,
50
                                  const struct __go_string *ps3,
51
                                  const struct __go_string *pmeth,
52
                                  struct __go_empty_interface *ret)
53
  __asm__ ("libgo_runtime.runtime.NewTypeAssertionError");
54
 
55
extern void runtime_newErrorString(struct __go_string,
56
                                   struct __go_empty_interface *)
57
  __asm__ ("libgo_runtime.runtime.NewErrorString");
58
 
59
extern void printany(struct __go_empty_interface)
60
  __asm__ ("libgo_runtime.runtime.Printany");
61
 
62
#endif /* !defined(LIBGO_GO_PANIC_H) */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.