Remove jerry_get_boolean_value (#4685)

JerryScript-DCO-1.0-Signed-off-by: Gergo Csizi csgergo92@gmail.com
This commit is contained in:
Gergo Csizi
2021-06-24 15:40:14 +02:00
committed by GitHub
parent 6de17b204e
commit 8f71871a39
40 changed files with 128 additions and 193 deletions
@@ -131,7 +131,7 @@ DECLARE_CLASS_FUNCTION(I2C, read) {
bool repeated = false;
if (args_count == 4) {
repeated = jerry_get_boolean_value(args[3]);
repeated = jerry_value_is_true(args[3]);
}
int result = native_ptr->read(address, data, length, repeated);
@@ -223,7 +223,7 @@ DECLARE_CLASS_FUNCTION(I2C, write) {
int address = jerry_get_number_value(args[0]);
const uint32_t data_len = jerry_get_array_length(args[1]);
int length = jerry_get_number_value(args[2]);
bool repeated = args_count == 4 && jerry_get_boolean_value(args[3]);
bool repeated = args_count == 4 && jerry_value_is_true(args[3]);
// Construct data byte array
char *data = new char[data_len];