On 21/10/2011 11.07, Miles Bader wrote:
Interesting thought... maybe a "magic" C function (executed once) that does some introspection on its own stack frame and/or subfunction return value and sets some function pointers to select appropriate processing for the calling convention it finds? (it would probably be easier to just #define according to system, but the above could in theory handle unlisted cases)I wonder if it's possible to do this portably (using info and functions generated by a C compiler)?
-- Enrico