Skip to content

Instantly share code, notes, and snippets.

@belltailjp
Created January 3, 2013 17:54
Show Gist options
  • Save belltailjp/4445353 to your computer and use it in GitHub Desktop.
Save belltailjp/4445353 to your computer and use it in GitHub Desktop.
#include <glog/logging.h>
void func()
{
throw;
}
int main(int argc, char *argv[])
{
//google glogの初期化
google::InitGoogleLogging(argv[0]);
//クラッシュ時にスタックトレースを吐くうシグナルハンドラを設定
google::InstallFailureSignalHandler();
func();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment