Skip to content

Latest commit

 

History

History
9 lines (6 loc) · 784 Bytes

README.md

File metadata and controls

9 lines (6 loc) · 784 Bytes

C Type Checking

I like type safety, but I also like C. I hear STB talk a lot about typesafe C structures, particularly hash maps. My previous typesafe hash map is pretty ugly in implementation, but has pretty good usage. However, I think that this new method I just found (inspired by the DeferLoop implementation that I saw in the raddebugger codebase) using the comma syntax, which I previously had no idea of, may revolutionise my typesafe implementations.

Improvements

  • I would like to be able to handle reference lvalues without requiring a different macro. This is not a hude deal, as the macro would only be used in a small number of function implementations, but still.