blob: e32ac85e6f65d5dc4739c0bb64f7fa6e820ea8a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
/*
* File: tests/hpptest.hpp
* Purpose: HPP Test wrapper for the OCL library.
* Author: Amlal El Mahrouss (amlal@nekernel.org)
* Copyright 2025, Amlal El Mahrouss, licensed under the MIT license.
*/
#pragma once
namespace ocl::hpptest
{
typedef bool condition_type;
template <condition_type expr = true>
consteval inline void must_pass()
{
#ifdef OCL_HPPTEST
OCL_HPPTEST_ASSERT(expr);
#endif
}
} // namespace ocl::hpptest
|