Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

assert_pp.c

Go to the documentation of this file.
00001 /*
00002  * assert_pp.c
00003  *
00004  * Copyright (c) 2003 The University of Utah and the Flux Group.
00005  * All rights reserved.
00006  *
00007  * This file is licensed under the terms of the GNU Public License.  
00008  * See the file "license.terms" for restrictions on redistribution 
00009  * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
00010  */
00011 
00012 /**
00013  * @file assert_pp.c
00014  *
00015  * Implementations of the functions in assert_pp.h.
00016  */
00017 
00018 #include "config.h"
00019 
00020 #include <stdio.h>
00021 #include <assert_pp.h>
00022 
00023 int pp_failed(char *file, unsigned int line,
00024               const char* func, char *type, char *expr)
00025 {
00026     /* A more assert-like failure message */
00027     fprintf(stderr,
00028             "%s:%u:%s(): %s failed: %s\n",
00029             file, line, func, type, expr);
00030     abort();
00031 }

Generated on Fri Oct 22 07:50:24 2004 for CPU Broker by  doxygen 1.3.9.1