[arrayfire] 69/84: Change CHECK_ARRAYS to be used like a function
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Mon Jan 4 23:22:27 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 50bccdd939e6e2f0aa3e6063bf1877ebe1b5864c
Author: Shehzan Mohammed <shehzan at arrayfire.com>
Date: Tue Dec 29 15:52:16 2015 -0500
Change CHECK_ARRAYS to be used like a function
---
src/api/unified/data.cpp | 6 +++---
src/api/unified/symbol_manager.hpp | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/api/unified/data.cpp b/src/api/unified/data.cpp
index 236b11f..9579e09 100644
--- a/src/api/unified/data.cpp
+++ b/src/api/unified/data.cpp
@@ -76,19 +76,19 @@ af_err af_identity(af_array *out, const unsigned ndims, const dim_t * const dims
af_err af_diag_create(af_array *out, const af_array in, const int num)
{
- CHECK_ARRAYS(in)
+ CHECK_ARRAYS(in);
return CALL(out, in, num);
}
af_err af_diag_extract(af_array *out, const af_array in, const int num)
{
- CHECK_ARRAYS(in)
+ CHECK_ARRAYS(in);
return CALL(out, in, num);
}
af_err af_join(af_array *out, const int dim, const af_array first, const af_array second)
{
- CHECK_ARRAYS(first, second)
+ CHECK_ARRAYS(first, second);
return CALL(out, dim, first, second);
}
diff --git a/src/api/unified/symbol_manager.hpp b/src/api/unified/symbol_manager.hpp
index f4cf913..f26e708 100644
--- a/src/api/unified/symbol_manager.hpp
+++ b/src/api/unified/symbol_manager.hpp
@@ -97,7 +97,7 @@ bool checkArrays(af_backend activeBackend, T a, Args... arg)
af_backend backendId = unified::AFSymbolManager::getInstance().getActiveBackend(); \
if(!unified::checkArrays(backendId, __VA_ARGS__)) \
return AF_ERR_ARR_BKND_MISMATCH; \
-} while(0);
+} while(0)
#if defined(OS_WIN)
#define CALL(...) unified::AFSymbolManager::getInstance().call(__FUNCTION__, __VA_ARGS__)
--
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