NDEBUG is not a platform-specific macro. assert is a standard macro, and the standard says that it does nothing if NDEBUG is defined at the point of inclusion of assert.h/cassert.

What could be done, however, is to define a single HPX-specific macro if assertions are disabled, regardless of the method used. I'll try to make a suggestion about this.