Define macro to check result