Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Latest commit

 

History

History
33 lines (20 loc) · 872 Bytes

README.md

File metadata and controls

33 lines (20 loc) · 872 Bytes

(archiving, the lib was moved to gwion-util

libprettyerr

A C library for displaying informative, clean and readable errors

libprettyerr provides a simple api to nicely display error messages for your programming language.

Backed by libtermcolor, it allows for displaying colored messages within the error.

is generated by this example file

Using prettyerr in your project

Add the repo as a submodule and build it

git submodule add https://github.com/fennecdjay/libprettyerr
cd libprettyerr
make

Add -Ilibprettyerr/src to your project's CFLAGS
And -Llibprettyerr -l prettyerr to your project's LDFLAGS

You can then start using libprettyerr.

If you're unsure about usage, look at the example file