aboutsummaryrefslogtreecommitdiff
path: root/src/mglpp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mglpp.cpp')
-rw-r--r--src/mglpp.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mglpp.cpp b/src/mglpp.cpp
index 6bf6307..1719d85 100644
--- a/src/mglpp.cpp
+++ b/src/mglpp.cpp
@@ -5,7 +5,8 @@ extern "C" {
namespace mgl {
Init::Init() {
- mgl_init();
+ if(mgl_init() != 0)
+ throw InitException();
}
Init::~Init() {