picostitch
crafting (and) JavaScript
#C

Dependency Injection in C99

does not really exist in c
what to inject?

  • singletons, like state that is unique throughout the project, e.g. system state (on, off, booting, shutting down, ...)
  • modules/functions as pointers