Skip to content

Latest commit

 

History

84 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

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

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages