Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cpp/src/arrow/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ install(FILES
schema.h
table.h
type.h
test-util.h
DESTINATION include/arrow)

#######################################
Expand Down
12 changes: 6 additions & 6 deletions cpp/src/arrow/test-util.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,22 +40,22 @@

#define ASSERT_RAISES(ENUM, expr) \
do { \
Status s = (expr); \
::arrow::Status s = (expr); \
if (!s.Is##ENUM()) { FAIL() << s.ToString(); } \
} while (0)

#define ASSERT_OK(expr) \
do { \
Status s = (expr); \
::arrow::Status s = (expr); \
if (!s.ok()) { FAIL() << s.ToString(); } \
} while (0)

#define ASSERT_OK_NO_THROW(expr) ASSERT_NO_THROW(ASSERT_OK(expr))

#define EXPECT_OK(expr) \
do { \
Status s = (expr); \
EXPECT_TRUE(s.ok()); \
#define EXPECT_OK(expr) \
do { \
::arrow::Status s = (expr); \
EXPECT_TRUE(s.ok()); \
} while (0)

namespace arrow {
Expand Down
1 change: 1 addition & 0 deletions cpp/src/arrow/util/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ install(FILES
logging.h
macros.h
memory-pool.h
random.h
status.h
visibility.h
DESTINATION include/arrow/util)
Expand Down
4 changes: 3 additions & 1 deletion cpp/src/arrow/util/bit-util.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
#include <memory>
#include <vector>

#include "arrow/util/visibility.h"

namespace arrow {

class Buffer;
Expand Down Expand Up @@ -76,7 +78,7 @@ static inline bool is_multiple_of_64(int64_t n) {
}

void bytes_to_bits(const std::vector<uint8_t>& bytes, uint8_t* bits);
Status bytes_to_bits(const std::vector<uint8_t>&, std::shared_ptr<Buffer>*);
ARROW_EXPORT Status bytes_to_bits(const std::vector<uint8_t>&, std::shared_ptr<Buffer>*);

} // namespace util

Expand Down