OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libgo/] [runtime/] [go-assert.c] - Blame information for rev 798

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 747 jeremybenn
/* 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 "go-assert.h"
11
 
12
void
13
__go_assert_fail (const char *file, unsigned int lineno)
14
{
15
  /* FIXME: Eventually we should dump a stack trace here.  */
16
  fprintf (stderr, "%s:%u: libgo assertion failure\n", file, lineno);
17
  abort ();
18
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.