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

A C library for displaying informative, clean and readable errors

License

Notifications You must be signed in to change notification settings

fennecdjay/libprettyerr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

(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

About

A C library for displaying informative, clean and readable errors

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published