#include #include int f(int x) { auto s = std::stacktrace::current(); std::println("{}", s); for(auto const& entry : s) std::print("Funktion: {}\nDatei {}, Zeile {}\n---\n", entry.description(), entry.source_file(), entry.source_line()); return x + 20; } int g(int y) { return f(y + 20); } int main() { std::println("{}", g(2)); }