Created
January 3, 2013 17:54
-
-
Save belltailjp/4445353 to your computer and use it in GitHub Desktop.
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 <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