3 ms·
This is probably the right solution, but I recently began digging into the python C API and found these in-lined functions in the header files and am a bit anno
by seiferteric 5y ago
This is probably the right solution, but I recently began digging into the python C API and found these in-lined functions in the header files and am a bit annoyed by having actual code in header files. The actual justification is that since these are shared libraries commonly called functions like GC calls will be inlined code instead of function calls, which makes sense but I wish there was a better way of doing that without putting code in headers. On a side note, my use of the API is a bit odd in that I am trying to create a python->ruby C API compatibility layer, and the ability to just #undef macros and redefine them in my header was nice, but oh well.