I'm working on something in c that requires a variadic function, and I need to do something depending on the type of each argument. I know via here that there's no way to check type during execution (and I'm not interested in the way they tried to solve it there), so I'm wondering if there's any sort of panic/recovery techniques in c, so as to implement a sort of try/catch (I've seen this article on pseudo try catches, but they won't allow for running non-executable code).
My thoughts are too loop through the variables and try different behaviors on them that only work with specific types. I know this might not be possible. Thanks in advance if you know of anything
Edit: If you are going to suggest that I should just refactor my code to not have to do that, let me explain: I'm trying to implement a println() function, similar to those in python and go, where you can simply enter all the variables you want to be printed and not have to worry about a format string (println(myvar, 10, "nice")). The obvious answer is just don't do it, since format strings really aren't that hard. But this sounds fun to me