You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
708 B
44 lines
708 B
/* |
|
* Xournal++ |
|
* |
|
* The main application |
|
* |
|
* @author Xournal++ Team |
|
* https://github.com/xournalpp/xournalpp |
|
* |
|
* @license GNU GPLv2 |
|
*/ |
|
|
|
#include "control/XournalMain.h" |
|
|
|
#include <config-dev.h> |
|
#include <CrashHandler.h> |
|
#include <Stacktrace.h> |
|
|
|
int main(int argc, char* argv[]) |
|
{ |
|
// init crash handler |
|
installCrashHandlers(); |
|
|
|
#ifdef DEV_CALL_LOG |
|
Log::initlog(); |
|
#endif |
|
|
|
// Use this two line to test the crash handler... |
|
// int* crash = NULL; |
|
// *crash = 0; |
|
|
|
XournalMain* main = new XournalMain(); |
|
int result = main->run(argc, argv); |
|
delete main; |
|
|
|
#ifdef DEV_MEMORY_LEAK_CHECKING |
|
xoj_momoryleak_printRemainingObjects(); |
|
#endif |
|
|
|
#ifdef DEV_CALL_LOG |
|
Log::closelog(); |
|
#endif |
|
|
|
return result; |
|
}
|
|
|