Plug for a tiny header library I wrote<p><a href="https:&#x2F;&#x2F;github.com&#x2F;rtaycher&#x2F;debug_print_h" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;rtaycher&#x2F;debug_print_h</a><p>It&#x27;s a little thing for simple printf debugging. I got tired as hell of using formatting strings. It prints line, file, and function, expression and value. Since it stands out &#x2F;greppable it&#x27;s easier to delete then random printfs.<p>It has support for different colors(to make things stand out) and uses c99 _Generic to support different types with a single &quot;function&quot; and c initializers for named arguments. It supports basic c types and you can sort of extend it by modyfing the header(unfortunately I couldn&#x27;t find anything cleaner using c).<p>C99 only (works on gcc&gt;4.9 (due to use of designated initializers) and llvm&#x2F;clang &gt;3.3 (maybe earlier but I tested it with 3.3)
I was hoping to support msvc but it looks like Microsoft hasn&#x27;t implemented _Generic yet.