aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/runtime/runtime.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/runtime.go')
-rw-r--r--src/runtime/runtime.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/runtime/runtime.go b/src/runtime/runtime.go
index 122ba837b..92d1a2edf 100644
--- a/src/runtime/runtime.go
+++ b/src/runtime/runtime.go
@@ -1,16 +1,13 @@
package runtime
-// #include <stdlib.h>
-import "C"
-
const Compiler = "tgo"
func _panic(message interface{}) {
printstring("panic: ")
printitf(message)
printnl()
- C.exit(1)
+ abort()
}
func boundsCheck(outOfRange bool) {
@@ -18,6 +15,6 @@ func boundsCheck(outOfRange bool) {
// printstring() here is safe as this function is excluded from bounds
// checking.
printstring("panic: runtime error: index out of range\n")
- C.exit(1)
+ abort()
}
}