Mercurial > hg > CbC > CbC_gcc
annotate libgo/runtime/go-assert.c @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* go-assert.c -- libgo specific assertions |
2 | |
3 Copyright 2010 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 #include <stdio.h> | |
8 #include <stdlib.h> | |
9 | |
10 #include "runtime.h" | |
11 #include "go-assert.h" | |
12 | |
13 void | |
14 __go_assert_fail (const char *file, unsigned int lineno) | |
15 { | |
16 /* FIXME: Eventually we should dump a stack trace here. */ | |
17 runtime_printf ("%s:%U: libgo assertion failure\n", file, (uint64) lineno); | |
18 abort (); | |
19 } |