| 18 | namespace af { |
| 19 | |
| 20 | array exampleFunction(const array& a, const af_someenum_t p) { |
| 21 | // create a temporary af_array handle |
| 22 | af_array temp = 0; |
| 23 | |
| 24 | // call C-API function |
| 25 | AF_THROW(af_example_function(&temp, a.get(), p)); |
| 26 | |
| 27 | // array::get() returns af_array handle for the corresponding cpp af::array |
| 28 | return array(temp); |
| 29 | } |
| 30 | |
| 31 | } // namespace af |
no test coverage detected