Skip to content

ANSI-Christ/C-try-catch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C-try-catch

C try / catch implementation.

Features

  • thread safe
  • nested calls
  • automatic throwing up if it is impossible to find match at its level

Requirements

  • POSIX-compatible environment
  • C99 compiler with GNU extensions (GCC 2.95+, Clang 1.0+, MinGW)

Quick Start

TRY(
    THROW(int,4);
)CATCH(int,x)(
    printf("int %d\n",x);
)

examples are in main.c

Specific:

  • in TRY block do not call return and goto
  • EXCEPTION always rewrites by last one

About

try / catch implementation in C

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors