Skip to content

Commit

Permalink
Jostle some section headers in wrap_cl.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Jul 1, 2022
1 parent b3b6345 commit 81f06d6
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/wrap_cl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,8 @@
// }}}


// {{{ macros and typedefs for wrappers



// {{{ tools
#if PY_VERSION_HEX >= 0x02050000
typedef Py_ssize_t PYOPENCL_BUFFER_SIZE_T;
#else
Expand Down Expand Up @@ -262,6 +260,7 @@

// }}}


// {{{ tracing and error reporting
#ifdef PYOPENCL_TRACE
#define PYOPENCL_PRINT_CALL_TRACE(NAME) \
Expand Down Expand Up @@ -329,6 +328,7 @@

// }}}


// {{{ get_info helpers
#define PYOPENCL_GET_OPAQUE_INFO(WHAT, FIRST_ARG, SECOND_ARG, CL_TYPE, TYPE) \
{ \
Expand Down Expand Up @@ -383,6 +383,7 @@

// }}}


// {{{ event helpers --------------------------------------------------------------
#define PYOPENCL_PARSE_WAIT_FOR \
cl_uint num_events_in_wait_list = 0; \
Expand Down Expand Up @@ -424,16 +425,18 @@

// }}}


// {{{ equality testing

#define PYOPENCL_EQUALITY_TESTS(cls) \
bool operator==(cls const &other) const \
{ return data() == other.data(); } \
bool operator!=(cls const &other) const \
{ return data() != other.data(); } \
long hash() const \
{ return (long) (intptr_t) data(); }
// }}}

// }}}


namespace pyopencl
Expand Down

0 comments on commit 81f06d6

Please sign in to comment.