Skip to content

Instantly share code, notes, and snippets.

@connormanning
Created April 6, 2018 14:00
Show Gist options
  • Save connormanning/96435f04e19caf1527b75ce397110c73 to your computer and use it in GitHub Desktop.
Save connormanning/96435f04e19caf1527b75ce397110c73 to your computer and use it in GitHub Desktop.
PDAL backtrace test
#include <iostream>
#include <pdal/util/Utils.hpp>
int main()
{
const auto bt(pdal::Utils::backtrace());
if (bt.empty()) std::cout << "No backtrace!" << std::endl;
else
{
std::cout << "Backtrace:" << std::endl;
for (const auto& l : bt) std::cout << l << std::endl;
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment