message: nwnxlib: add ASSERT_OR_RETURN
diff: @@ -37,6 +37,11 @@ namespace Assert {
  { \
  if(!(condition)) throw std::runtime_error("ASSERTION FAILURE: (" + std::string(#condition) + ") in NWScript: " + NWNXLib::Utils::GetCurrentScript()); \
  } while (0)
  + #define ASSERT_OR_RETURN(condition, retval) \
  + do \
  + { \
  + if (!(condition)) { ASSERT_FAIL_MSG("ASSERTION FAILURE: %s", #condition); return retval; } \
  + } while (0)
  void Fail(const char* condition, const char* file, int line, const char* message);
  