Don't do this.
Asserts should not have any side-effect and should be fully eliminated in the debug build.

I can't understand why Vadim did not port `openCLSafeCall` from ocl module.
Information about error from "asserts" are useless because we should know what is happened (Do you like to fix program compilation without build log?).