Skip to content
Snippets Groups Projects
Commit 6f2e556b authored by Yichao Yu's avatar Yichao Yu
Browse files

move functions used by only one file to .cpp

parent b6f33ba4
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,12 @@ namespace pyopencl {
template class clobj<cl_program>;
PYOPENCL_USE_RESULT static PYOPENCL_INLINE program*
new_program(cl_program prog, program_kind_type progkind=KND_UNKNOWN)
{
return pyopencl_convert_obj(program, clReleaseProgram, prog, progkind);
}
program::~program()
{
pyopencl_call_guarded_cleanup(clReleaseProgram, this);
......
......@@ -80,11 +80,6 @@ public:
// }
// #endif
};
PYOPENCL_USE_RESULT static PYOPENCL_INLINE program*
new_program(cl_program prog, program_kind_type progkind=KND_UNKNOWN)
{
return pyopencl_convert_obj(program, clReleaseProgram, prog, progkind);
}
// }}}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment