Skip to content

gmdods/c-gen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

c-gen

A generative C generic header

Using standard C11 techniques of _Generic and X macro to generate new template functions.

Containers

  • arena.h
  • dynarray.h
  • nodelist.h
  • hashmap.h

Downsides

  • Code bloat / monomorphism
  • Macro expansion in compiler / editor
  • Single-identifier types (no struct foo as argument)

Testing

Testing uses c-unittest.

About

A generative C generic header

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published