Skip to content

Commit

Permalink
update get bool function
Browse files Browse the repository at this point in the history
  • Loading branch information
SunDoge committed Dec 11, 2023
1 parent 6ffd66e commit 461f57f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions simdjson-sys/src/simdjson_c_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,11 @@ SJ_double_result SJ_DOM_element_get_double(SJ_DOM_element *self) {
const error_code error = cast_to_type(self)->get_double().get(res);
return {static_cast<int>(error), res};
}
SJ_bool_result SJ_DOM_element_get_bool(SJ_DOM_element *self) {
bool res = false;
const error_code error = cast_to_type(self)->get_bool().get(res);
return {static_cast<int>(error), res};
}
SJ_DOM_element_result SJ_DOM_element_at_pointer(SJ_DOM_element *self,
const char *json, size_t len) {
dom::element res;
Expand Down

0 comments on commit 461f57f

Please sign in to comment.