All C++ compilers provide some form of always-inline attribute and it’s important to use them for a good debug experience. We have a few things in snmalloc that provide compile-time checking of our intentions, which are erased at compile time normally. Most of the methods are no-ops, so they’re marked as always inline and end up erased at compile time even in debug builds.
All C++ compilers provide some form of always-inline attribute and it’s important to use them for a good debug experience. We have a few things in snmalloc that provide compile-time checking of our intentions, which are erased at compile time normally. Most of the methods are no-ops, so they’re marked as always inline and end up erased at compile time even in debug builds.