lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 21/10/2011 11.07, Miles Bader wrote:
I wonder if it's possible to do this portably (using info and functions
generated by a C compiler)?

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)

--
  Enrico