Remove dynamic exceptions
[anna.git] / source / app / functions.cpp
1 // ANNA - Anna is Not Nothingness Anymore                                                         //
2 //                                                                                                //
3 // (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo                         //
4 //                                                                                                //
5 // See project site at http://redmine.teslayout.com/projects/anna-suite                           //
6 // See accompanying file LICENSE or copy at http://www.teslayout.com/projects/public/anna.LICENSE //
7
8
9 #include <anna/app/Application.hpp>
10 #include <anna/app/functions.hpp>
11
12 using namespace anna;
13
14 app::Application& app::functions::getApp()
15 noexcept(false) {
16   if(Application::st_application == NULL)
17     throw RuntimeException("No application class has been defined", ANNA_FILE_LOCATION);
18
19   return *Application::st_application;
20 }
21
22