Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I Feel guilty but I hardcoded another "print_source_loc" formatting #129

Open
RoyBellingan opened this issue Nov 16, 2018 · 0 comments
Open

Comments

@RoyBellingan
Copy link

RoyBellingan commented Nov 16, 2018

Just a small suggestion to add some kind of switch via a IFDEF to print from "super pretty" stack trace to the copypastable one

file:line sintax, so many program will just go to the right place.

If you deem that reasonable I will do a merge request, else in

void print_source_loc(std::ostream& os, const char* indent,

I now have

		auto fileNameClean = source_loc.filename.substr(3);
		os << indent
		   << "Source \""
		   << fileNameClean
		   << ":"
		   << source_loc.line
		   << "\"\n in "
		   << source_loc.function;
  1. So double click and most shell will select what is inside the "
  2. ??
  3. profit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant