kenba / opencl3

A Rust implementation of the Khronos OpenCL 3.0 API.
Apache License 2.0
102 stars 13 forks source link

Introduce track_caller for panicing methods of ExecuteKernel #50

Closed 9SMTM6 closed 2 years ago

9SMTM6 commented 2 years ago

This adds track_caller attributes to improve debugging for library users, as suggested in #49.

I did test it in my own project, worked as expected, for both the panic! and also the assert! calls.