C++ API: Change datasets.cc ValidateParams support to return Status instead of bool

pull/7435/head
Cathy Wong 4 years ago
parent 0a645c64e0
commit f91ecaaf6d

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -66,6 +66,11 @@ namespace dataset {
} \
} while (false)
#define RETURN_STATUS_SYNTAX_ERROR(_e) \
do { \
return Status(StatusCode::kSyntaxError, __LINE__, __FILE__, _e); \
} while (false)
enum class StatusCode : char {
kOK = 0,
kOutOfMemory = 1,

@ -66,6 +66,11 @@ namespace dataset {
} \
} while (false)
#define RETURN_STATUS_SYNTAX_ERROR(_e) \
do { \
return Status(StatusCode::kSyntaxError, __LINE__, __FILE__, _e); \
} while (false)
enum class StatusCode : char {
kOK = 0,
kOutOfMemory = 1,

Loading…
Cancel
Save