[arrayfire] 58/84: Use AF_RETURN_ERROR when graphics is not configured
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Mon Jan 4 23:22:25 UTC 2016
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch master
in repository arrayfire.
commit 7cb790e76fcd5231f013de5040814360b7a5b8d4
Author: Shehzan Mohammed <shehzan at arrayfire.com>
Date: Mon Dec 28 21:28:25 2015 -0500
Use AF_RETURN_ERROR when graphics is not configured
---
src/api/c/hist.cpp | 2 +-
src/api/c/image.cpp | 18 +++++++++---------
src/api/c/plot.cpp | 2 +-
src/api/c/plot3.cpp | 2 +-
src/api/c/surface.cpp | 2 +-
5 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/src/api/c/hist.cpp b/src/api/c/hist.cpp
index 4ddf43b..76731f3 100644
--- a/src/api/c/hist.cpp
+++ b/src/api/c/hist.cpp
@@ -84,6 +84,6 @@ af_err af_draw_hist(const af_window wind, const af_array X, const double minval,
CATCHALL;
return AF_SUCCESS;
#else
- return AF_ERR_NO_GFX;
+ AF_RETURN_ERROR("ArrayFire compiled without graphics support", AF_ERR_NO_GFX);
#endif
}
diff --git a/src/api/c/image.cpp b/src/api/c/image.cpp
index ee2520c..1d3e097 100644
--- a/src/api/c/image.cpp
+++ b/src/api/c/image.cpp
@@ -116,7 +116,7 @@ af_err af_draw_image(const af_window wind, const af_array in, const af_cell* con
return AF_SUCCESS;
#else
- return AF_ERR_NO_GFX;
+ AF_RETURN_ERROR("ArrayFire compiled without graphics support", AF_ERR_NO_GFX);
#endif
}
@@ -146,7 +146,7 @@ af_err af_create_window(af_window *out, const int width, const int height, const
*out = reinterpret_cast<af_window>(wnd);
return AF_SUCCESS;
#else
- return AF_ERR_NO_GFX;
+ AF_RETURN_ERROR("ArrayFire compiled without graphics support", AF_ERR_NO_GFX);
#endif
}
@@ -165,7 +165,7 @@ af_err af_set_position(const af_window wind, const unsigned x, const unsigned y)
CATCHALL;
return AF_SUCCESS;
#else
- return AF_ERR_NO_GFX;
+ AF_RETURN_ERROR("ArrayFire compiled without graphics support", AF_ERR_NO_GFX);
#endif
}
@@ -184,7 +184,7 @@ af_err af_set_title(const af_window wind, const char* const title)
CATCHALL;
return AF_SUCCESS;
#else
- return AF_ERR_NO_GFX;
+ AF_RETURN_ERROR("ArrayFire compiled without graphics support", AF_ERR_NO_GFX);
#endif
}
@@ -203,7 +203,7 @@ af_err af_set_size(const af_window wind, const unsigned w, const unsigned h)
CATCHALL;
return AF_SUCCESS;
#else
- return AF_ERR_NO_GFX;
+ AF_RETURN_ERROR("ArrayFire compiled without graphics support", AF_ERR_NO_GFX);
#endif
}
@@ -222,7 +222,7 @@ af_err af_grid(const af_window wind, const int rows, const int cols)
CATCHALL;
return AF_SUCCESS;
#else
- return AF_ERR_NO_GFX;
+ AF_RETURN_ERROR("ArrayFire compiled without graphics support", AF_ERR_NO_GFX);
#endif
}
@@ -241,7 +241,7 @@ af_err af_show(const af_window wind)
CATCHALL;
return AF_SUCCESS;
#else
- return AF_ERR_NO_GFX;
+ AF_RETURN_ERROR("ArrayFire compiled without graphics support", AF_ERR_NO_GFX);
#endif
}
@@ -260,7 +260,7 @@ af_err af_is_window_closed(bool *out, const af_window wind)
CATCHALL;
return AF_SUCCESS;
#else
- return AF_ERR_NO_GFX;
+ AF_RETURN_ERROR("ArrayFire compiled without graphics support", AF_ERR_NO_GFX);
#endif
}
@@ -279,6 +279,6 @@ af_err af_destroy_window(const af_window wind)
CATCHALL;
return AF_SUCCESS;
#else
- return AF_ERR_NO_GFX;
+ AF_RETURN_ERROR("ArrayFire compiled without graphics support", AF_ERR_NO_GFX);
#endif
}
diff --git a/src/api/c/plot.cpp b/src/api/c/plot.cpp
index b22e928..26b58a8 100644
--- a/src/api/c/plot.cpp
+++ b/src/api/c/plot.cpp
@@ -102,6 +102,6 @@ af_err af_draw_plot(const af_window wind, const af_array X, const af_array Y, co
CATCHALL;
return AF_SUCCESS;
#else
- return AF_ERR_NO_GFX;
+ AF_RETURN_ERROR("ArrayFire compiled without graphics support", AF_ERR_NO_GFX);
#endif
}
diff --git a/src/api/c/plot3.cpp b/src/api/c/plot3.cpp
index 473bce0..1ef30e6 100644
--- a/src/api/c/plot3.cpp
+++ b/src/api/c/plot3.cpp
@@ -108,6 +108,6 @@ af_err af_draw_plot3(const af_window wind, const af_array P, const af_cell* cons
CATCHALL;
return AF_SUCCESS;
#else
- return AF_ERR_NO_GFX;
+ AF_RETURN_ERROR("ArrayFire compiled without graphics support", AF_ERR_NO_GFX);
#endif
}
diff --git a/src/api/c/surface.cpp b/src/api/c/surface.cpp
index 835849d..7db8441 100644
--- a/src/api/c/surface.cpp
+++ b/src/api/c/surface.cpp
@@ -130,6 +130,6 @@ af_err af_draw_surface(const af_window wind, const af_array xVals, const af_arra
CATCHALL;
return AF_SUCCESS;
#else
- return AF_ERR_NO_GFX;
+ AF_RETURN_ERROR("ArrayFire compiled without graphics support", AF_ERR_NO_GFX);
#endif
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/arrayfire.git
More information about the debian-science-commits
mailing list