3 ms·
something like stack_trace::parent would be hard to do in a modern toolchain, since we now have people deploying code to environments like WebAssembly that proh
by kevingadd 3y ago
something like stack_trace::parent would be hard to do in a modern toolchain, since we now have people deploying code to environments like WebAssembly that prohibit stackwalking
In C#/.NET's case, even though stackwalking is available in the API, it is preferred to push the location info in from outside and there are mechanisms to automate it (CallerFilePath, etc)
- beached_whale 3y agoIt's part of C++23, https://en.cppreference.com/w/cpp/utility/basic_stacktrace https://en.cppreference.com/w/cpp/utility/basic_stacktrace. It's not parent, and I think I am wrong that that is needed, just the current position in the stack, so assuming the trace isn't empty(), it's like stack_trace::current( )[0]