Exemple #1
0
void
MistUtils::where() {
  CallStack c = call_stack_;
  string s = "\n";

  while (!c.empty()) {
    s += "    => ";
    s += c.top()->name().c_str();
    s += "()\n";
    c.pop();
  }
  s += "    => main()";
  print("  - call stack: %s", s.c_str());
}