HiRep 0.1
Loading...
Searching...
No Matches
error.c File Reference

Error handling functions. More...

#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include "libhr_core.h"
#include "io.h"
#include "geometry.h"
Include dependency graph for error.c:

Functions

void error (int test, int no, const char *name, const char *text,...)
 Print message to error file defined on startup.
 

Detailed Description

Error handling functions.

Function Documentation

◆ error()

void error ( int test,
int no,
const char * name,
const char * text,
... )

Print message to error file defined on startup.

Parameters
testCondition on whether an error should be raised. 0 for no error and continue 1 for error, stop and print error message
noExit Code Value smaller than zero exits immediately with code 0. Value larger or equal then zero exits with code given after finalizing.
nameFunction name, where the error was raised
textError message text