Skip to content
This repository was archived by the owner on Aug 31, 2025. It is now read-only.
/ CDefer Public archive

Go style defer (uses statement expression extension be ware)

License

Notifications You must be signed in to change notification settings

CaitaXD/CDefer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CDefer

Go style defer (GCC|Clang only imagine using MSVC) uses setjmp|longjmp and some criminal macros

Example:

defer_scope {
  defer {
    printf("End Simple Scope\n");
  } // This Will Execute at the end of the defer scope
  printf("Begin Simple Scope\n");
  printf("\tHello World!\n");
}

About

Go style defer (uses statement expression extension be ware)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published