aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/runtime.h
diff options
context:
space:
mode:
authorKeith Randall <khr@golang.org>2014-09-05 10:04:16 -0400
committerRuss Cox <rsc@golang.org>2014-09-05 10:04:16 -0400
commit8217b4a203daaa7f24590f9369c77b758dad1cd6 (patch)
tree218976e8656a7f05f539d42417060b5bde4082ee /src/pkg/runtime/runtime.h
parente0f08b938a37490cd6e4f6bb33360678ac5f42b0 (diff)
downloadgo-8217b4a203daaa7f24590f9369c77b758dad1cd6.tar.xz
runtime: convert panic/recover to Go
created panic1.go just so diffs were available. After this CL is in, I'd like to move panic.go -> defer.go and panic1.go -> panic.go. LGTM=rsc R=rsc, khr CC=golang-codereviews https://golang.org/cl/133530045
Diffstat (limited to 'src/pkg/runtime/runtime.h')
-rw-r--r--src/pkg/runtime/runtime.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/pkg/runtime/runtime.h b/src/pkg/runtime/runtime.h
index 7007957b65..b3d1a94221 100644
--- a/src/pkg/runtime/runtime.h
+++ b/src/pkg/runtime/runtime.h
@@ -656,15 +656,12 @@ struct Defer
struct Panic
{
Eface arg; // argument to panic
- uintptr stackbase; // g->stackbase in panic
Panic* link; // link to earlier panic
Defer* defer; // current executing defer
bool recovered; // whether this panic is over
bool aborted; // the panic was aborted
};
-typedef struct XXX XXX;
-
/*
* stack traces
*/
@@ -1020,7 +1017,7 @@ void runtime·printcomplex(Complex128);
*/
void runtime·newstackcall(FuncVal*, byte*, uint32);
void reflect·call(FuncVal*, byte*, uint32, uint32);
-void runtime·panic(Eface);
+void runtime·gopanic(Eface);
void runtime·panicindex(void);
void runtime·panicslice(void);
void runtime·panicdivide(void);