Closed robb closed 10 years ago
I begin to like the static inline
approach. I feel like Asterism is very bare bones so being a fully transparent set of what would effectively amount to macros could help maintain that focus.
@kastiglione iirc you said you used overloaded C functions in production, what's your take on this?
I've only used overloaded C functions in application code, where versioning and name mangling wasn't an issue.
For overloaded functions in a library, I would take this approach: http://garbagecollective.quora.com/Overloadable-functions-across-link-unit-boundaries-in-C
It's a little extra work, but seems like a reliable solution.
Looks like a great compromise, thanks!
Essentially:
or:
static inline
defined in the.h
files/cc @wrl