Skip to content

Commit

Permalink
rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
marin-ma committed Nov 25, 2024
1 parent 1a2032c commit 8253b53
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions velox/common/compression/Compression.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,29 +25,6 @@

namespace facebook::velox::common {

/// Return with given status wrapped in folly::Unexpected if condition is met.
#define VELOX_RETURN_UNEXPECTED_IF(condition, status) \
do { \
if (FOLLY_UNLIKELY(condition)) { \
return (::folly::makeUnexpected(status)); \
} \
} while (false)

/// Propagate any non-successful Status wrapped in folly::Unexpected to the
/// caller.
#define VELOX_RETURN_UNEXPECTED_NOT_OK(status) \
do { \
::facebook::velox::Status __s = \
::facebook::velox::internal::genericToStatus(status); \
VELOX_RETURN_IF(!__s.ok(), ::folly::makeUnexpected(__s)); \
} while (false)

#define VELOX_RETURN_UNEXPECTED(expected) \
do { \
auto res = (expected); \
VELOX_RETURN_UNEXPECTED_IF(res.hasError(), res.error()); \
} while (false)

enum CompressionKind {
CompressionKind_NONE = 0,
CompressionKind_ZLIB = 1,
Expand Down

0 comments on commit 8253b53

Please sign in to comment.