Created
April 6, 2018 14:00
-
-
Save connormanning/96435f04e19caf1527b75ce397110c73 to your computer and use it in GitHub Desktop.
PDAL backtrace test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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