Merge "Add macros to check for successful Result"