Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

throw

Create errors and throw them easily

install

$ nibble add throw

usage

#include "src/throw.h"

int main() {
    error test = error_new(1, "test error");
    
    throw(&test, "This will print error to stderr or whatever THROW_FD is set to");

    throw_fatal(&test, "This will exit after throwing");
}

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages