Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARROW-4084: [C++] Make Status static method support variadic arguments
- Static constructors like `Status::Invalid` now supports variadic arguments à la `Status::Invalid("my", variable, "error message: ", i)`. - A new macro was added `ARROW_RETURN_IF(cond, status)` which replaces the previous `ARROW_RETURN_IF_FALSE` but also adds branch prediction hints. Note that only gandiva was refactored with this macro as otherwise the code review would have exploded. - Fixed a bug in memory map implementations not checking the return code of `mmap` and `mremap`. Author: François Saint-Jacques <fsaintjacques@gmail.com> Closes #3228 from fsaintjacques/ARROW-4084-variadic-status-message and squashes the following commits: a877ab9 <François Saint-Jacques> Travis 890df68 <François Saint-Jacques> Remove gandiva expect string message testing 71ecbae <François Saint-Jacques> Use perfect forwarding. 774bf93 <François Saint-Jacques> Add missing string header bf5cdfe <François Saint-Jacques> Removed code printing in status 1d1db49 <François Saint-Jacques> Reformat d9fcad9 <François Saint-Jacques> ARROW-4084: Make Status static method support variadic arguments
- Loading branch information
1 parent
c39db63
commit ce9c6e3
Showing
68 changed files
with
763 additions
and
1,122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.