do not use macros. If you want more speed, you can use inline function. Simple error example with your macros:
```cpp
// some code
if (some_expr)
    SAFE_DELETE_ARRAY(p_array)
else
    some_statement;
// some code
```