forked from triSYCL/triSYCL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
unimplemented.hpp
47 lines (36 loc) · 992 Bytes
/
unimplemented.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#ifndef TRISYCL_SYCL_DETAIL_UNIMPLEMENTED_HPP
#define TRISYCL_SYCL_DETAIL_UNIMPLEMENTED_HPP
/** \file Deal with unimplemented features
Ronan at Keryell point FR
This file is distributed under the University of Illinois Open Source
License. See LICENSE.TXT for details.
*/
#include <iostream>
namespace cl {
namespace sycl {
namespace detail {
/** \addtogroup helpers Some helpers for the implementation
@{
*/
/** Display an "unimplemented" message
Can be changed to call assert(0) or whatever.
*/
inline void unimplemented() {
#ifndef NDEBUG
std::cerr << "Error: using a non implemented feature!!!" << std::endl
<< "Please contribute to the open source implementation. :-)"
<< std::endl;
#endif
}
/// @} End the helpers Doxygen group
}
}
}
/*
# Some Emacs stuff:
### Local Variables:
### ispell-local-dictionary: "american"
### eval: (flyspell-prog-mode)
### End:
*/
#endif // TRISYCL_SYCL_DETAIL_UNIMPLEMENTED_HPP