diff options
author | Russ Cox <rsc@golang.org> | 2010-03-31 15:55:10 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2010-03-31 15:55:10 -0700 |
commit | 6fe680e0846efc1d26e57969512d725e780a098c (patch) | |
tree | c1ef2374ccd744e5677a25df9dbac3407b5f291e /src/pkg/runtime/runtime.h | |
parent | a20ea8d7a98348caa3986652db8c1c76560fc870 (diff) | |
download | golang-6fe680e0846efc1d26e57969512d725e780a098c.tar.gz |
runtime: make type assertion a runtime.Error, the first of many
R=r
CC=golang-dev
http://codereview.appspot.com/805043
Diffstat (limited to 'src/pkg/runtime/runtime.h')
-rw-r--r-- | src/pkg/runtime/runtime.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/pkg/runtime/runtime.h b/src/pkg/runtime/runtime.h index adb83116b..b4011b758 100644 --- a/src/pkg/runtime/runtime.h +++ b/src/pkg/runtime/runtime.h @@ -361,7 +361,6 @@ int32 charntorune(int32*, uint8*, int32); /* * very low level c-called */ -void callString(void(*fn)(void), void *arg, String *out); void gogo(Gobuf*, uintptr); void gogocall(Gobuf*, void(*)(void)); uintptr gosave(Gobuf*); @@ -372,7 +371,6 @@ void* getu(void); void throw(int8*); uint32 rnd(uint32, uint32); void prints(int8*); -void printany(Eface); void printf(int8*, ...); byte* mchr(byte*, byte, byte*); void mcpy(byte*, byte*, uint32); @@ -432,6 +430,7 @@ bool sigsend(int32 sig); void gettime(int64*, int32*); int32 callers(int32, uintptr*, int32); int64 nanotime(void); +void panic(int32); #pragma varargck argpos printf 1 @@ -530,8 +529,15 @@ void runtime_printuint(uint64); void runtime_printhex(uint64); void runtime_printslice(Slice); void runtime_printcomplex(Complex128); -void panic(int32); void reflect·call(byte*, byte*, uint32); +void ·panic(Eface); + +/* + * runtime c-called (but written in Go) + */ +void ·newError(String, Eface*); +void ·printany(Eface); +void ·newTypeAssertionError(Type*, Type*, Type*, String*, String*, String*, String*, Eface*); /* * wrapped for go users |