/*
 * Copyright 2015 - 2025 gary@drinkingtea.net
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at https://mozilla.org/MPL/2.0/.
 */

#pragma once

#include "string.hpp"

namespace ox {

[[nodiscard]]
ox::String genStackTrace([[maybe_unused]]unsigned shave) noexcept;

/**
 * Prints a stack trace to stderr.
 *
 * @param shave number of call levels to shave off the top
 */
void printStackTrace(unsigned shave = 1) noexcept;

}
