2011-10-08 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / libgo / runtime / go-assert.c
blob48aa0725cecf618825becc4bd97ac45be43be316
1 /* go-assert.c -- libgo specific assertions
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. */
7 #include <stdio.h>
8 #include <stdlib.h>
10 #include "go-assert.h"
12 void
13 __go_assert_fail (const char *file, unsigned int lineno)
15 /* FIXME: Eventually we should dump a stack trace here. */
16 fprintf (stderr, "%s:%u: libgo assertion failure\n", file, lineno);
17 abort ();