libpulsar
A modular compiler for the pulsar programming language
Loading...
Searching...
No Matches
Functions
abort.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include "abort.h"

Go to the source code of this file.

Functions

void _ps_abort (STR msg, int code, STR filename, STR function, int line)
 Aborts the program with the given message.
 

Function Documentation

◆ _ps_abort()

void _ps_abort ( STR  msg,
int  code,
STR  filename,
STR  function,
int  line 
)

Aborts the program with the given message.

Parameters
msgThe message to print.
codeThe exit code.
filenameThe file where the abort was called.
functionThe function where the abort was called.
lineThe line where the abort was called.

Definition at line 7 of file abort.c.