aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2024-07-17 22:21:13 +0200
committerMattias Andrée <maandree@kth.se>2024-07-17 22:21:13 +0200
commit4565494854aca1530bea4c0e3d390d22e6cc1460 (patch)
treeafe881c14f3bb452d8983f5b1e491148dbd56845
parentUpdate for libgamma 0.7.4 (diff)
downloadlibgammamm-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>
-rw-r--r--.gitignore1
-rw-r--r--libgamma-facade.cc4
-rw-r--r--libgammamm.abin50438 -> 0 bytes
3 files changed, 4 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index f523fe1..2698287 100644
--- a/.gitignore
+++ b/.gitignore
@@ -12,4 +12,5 @@
*.so.*
*.dll
*.dylib
+*.a
/test
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);
}
diff --git a/libgammamm.a b/libgammamm.a
deleted file mode 100644
index 9051f9b..0000000
--- a/libgammamm.a
+++ /dev/null
Binary files differ