MCPcopy Create free account
hub / github.com/KhronosGroup/OpenCL-CLHPP / clCreateProgramWithSource_EmptySource

Function clCreateProgramWithSource_EmptySource

tests/test_openclhpp.cpp:2382–2402  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2380
2381#ifndef CL_HPP_ENABLE_EXCEPTIONS
2382static cl_program clCreateProgramWithSource_EmptySource(
2383 cl_context context,
2384 cl_uint count,
2385 const char** strings,
2386 const size_t* lengths,
2387 cl_int* errcode_ret,
2388 int num_calls)
2389{
2390 (void) num_calls;
2391
2392 TEST_ASSERT_EQUAL(context, make_context(1));
2393 TEST_ASSERT_EQUAL(count, 0);
2394 TEST_ASSERT_EQUAL(strings, nullptr);
2395 TEST_ASSERT_EQUAL(lengths, nullptr);
2396
2397 if (errcode_ret) {
2398 errcode_ret[0] = CL_INVALID_VALUE;
2399 }
2400
2401 return nullptr;
2402}
2403#endif
2404
2405void testProgramCreateEmptySources(void)

Callers

nothing calls this directly

Calls 1

make_contextFunction · 0.85

Tested by

no test coverage detected