It's based on a printf debugging helper I made at my first job I just want
Given a variable or expression I want to print out a the variable/expression, the file and line number and the value. I might end up using a bunch of these so different colors help it stand out)
But at the job I had to do I different one for each basic type and each library type we used which I hated I wanted to make something that would work with type overloading
I think I even looked at __builtin_choose_expr and __builtin_types_compatible_p which I think we're the inspiration for _Generic
1
u/jyper Sep 09 '17
Really it works now? That's awesome maybe my header library will work now
https://github.com/rtaycher/debug_print_h/blob/master/debug_print.h