aboutsummaryrefslogtreecommitdiff
path: root/src/mglpp.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-11-24 18:59:16 +0100
committerdec05eba <dec05eba@protonmail.com>2024-11-24 18:59:16 +0100
commit9800cff631f1a82ee87005aabdefb3f5da7fadb5 (patch)
tree0a2de716518eb8e5a10e6f276dc2574ab0f0c420 /src/mglpp.cpp
parent84a6eb51b0c54e8f2c5134ff9e3baf39f5da77cb (diff)
Throw InitException on mglpp init failure
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() {