4T
cry.h
Table of Contents
Motivation
I want errors and fatal errors with fancy colors.
Installation
clib install 4thel00z/cry.h
Usage
#include "cry.h"
#include <sysexits.h>
#define CRY_SIMPLE (-1337)
#define CRY_FATAL (1337)
int main(){
// If you set CRY_TO var to another FILE * the output get's redirected there
cry_t simple_cry = cry_new(CRY_SIMPLE, "CRY_SIMPLE");
cry_t fatal_cry = cry_fatal_new(CRY_FATAL, "CRY_FATAL", true, EX_USAGE);
cry(&simple_cry, "Crying simply");
cry(&fatal_cry, "Crying for last time boi");
// This will get ignored lel
return 0;
}License
This project is licensed under the GPL-3 license.
On this page
Languages
C100.0%
Contributors
GNU General Public License v3.0
Created August 13, 2021
Updated June 8, 2023
