PULSAR  2.0.0
Parallel Ultra-Light Systolic Array Runtime
 All Data Structures Files Functions Typedefs Enumerations Macros Groups
prt_assert.h File Reference

PRT exception handling. More...

#include "prt.h"

Go to the source code of this file.

Macros

#define prt_error(msg)   prt_error_line_file(msg, __LINE__, __FILE__)
 
#define prt_warning(msg)   prt_warning_line_file(msg, __LINE__, __FILE__)
 
#define prt_assert(cond, msg)   prt_assert_line_file(cond, msg, __LINE__, __FILE__)
 

Functions

void prt_error_line_file (const char *msg, int line, char *file)
 Prints an error message and exits. More...
 
void prt_warning_line_file (const char *msg, int line, char *file)
 Prints a warning and continues. More...
 
void prt_assert_line_file (int cond, const char *msg, int line, char *file)
 Checks an assertion and exits on error. Prints an error message. More...
 

Detailed Description

PRT exception handling.

Author
Jakub Kurzak

PULSAR Runtime http://icl.utk.edu/pulsar/ Copyright (C) 2012-2015 University of Tennessee.

Definition in file prt_assert.h.

Function Documentation

void prt_assert_line_file ( int  cond,
const char *  msg,
int  line,
char *  file 
)

Checks an assertion and exits on error. Prints an error message.

Parameters
cond– The condition.
msg– The error message.
line– The line number.
file– The name of the source file.

Definition at line 23 of file prt_assert.c.

void prt_error_line_file ( const char *  msg,
int  line,
char *  file 
)

Prints an error message and exits.

Parameters
msg– The error message.
line– The line number.
file– The name of the source file.

Definition at line 37 of file prt_assert.c.

void prt_warning_line_file ( const char *  msg,
int  line,
char *  file 
)

Prints a warning and continues.

Parameters
msg– The warning message.
line– The line number.
file– The name of the source file.

Definition at line 52 of file prt_assert.c.