diff options
author | Mattias Andrée <maandree@kth.se> | 2024-07-17 22:21:13 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2024-07-17 22:21:13 +0200 |
commit | 4565494854aca1530bea4c0e3d390d22e6cc1460 (patch) | |
tree | afe881c14f3bb452d8983f5b1e491148dbd56845 /libgamma-facade.cc | |
parent | Update for libgamma 0.7.4 (diff) | |
download | libgammamm-4565494854aca1530bea4c0e3d390d22e6cc1460.tar.gz libgammamm-4565494854aca1530bea4c0e3d390d22e6cc1460.tar.bz2 libgammamm-4565494854aca1530bea4c0e3d390d22e6cc1460.tar.xz |
Fix usage of new API (also remove accidentally committed .a file)1.0.4
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | libgamma-facade.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libgamma-facade.cc b/libgamma-facade.cc index c68400a..9f2e457 100644 --- a/libgamma-facade.cc +++ b/libgamma-facade.cc @@ -64,7 +64,9 @@ namespace libgamma method_capabilities(MethodCapabilities *output, int method) { struct libgamma_method_capabilities caps; - libgamma_method_capabilities(&caps, sizeof(caps), method); + int r = libgamma_method_capabilities(&caps, sizeof(caps), method); + if (r < 0) + throw create_error(r); *output = MethodCapabilities(&caps); } |