• Home
  • Raw
  • Download

Lines Matching +full:unused +full:- +full:function

3 The `jerryscript-ext/handler.h` header defines a set of convenience methods
13 - The property name must be a zero terminated UTF-8 string.
14 - There should be no '\0' (NULL) character in the name excluding the string terminator.
15 - Returned value must be freed with [jerry_release_value](#jerry_release_value) when it
28 - `target_object` - the object where the property should be set
29 - `name` - name of the property
30 - `value` - property value to be set
31 - return value
32 - JS true value, if success
33 - thrown error, if there was a problem setting the property
41 #include "jerryscript-ext/handler.h"
74 - The property name must be a zero terminated UTF-8 string.
75 - There should be no '\0' (NULL) character in the name excluding the string terminator.
76 - Returned value must be freed with [jerry_release_value](#jerry_release_value) when it
88 - `target_object` - object on which the property name is accessed
89 - `name` - property name as an UTF-8 `char*`
90 - return value
91 - value of property, if success
92 - thrown error, if there was a problem accessing the property
100 #include "jerryscript-ext/handler.h"
128 - The operation performed is the same as what the `jerry_has_property` method.
129 - The property name must be a zero terminated UTF-8 string.
130 - There should be no '\0' (NULL) character in the name excluding the string terminator.
141 - `target_object` - object on which the property name is accessed
142 - `name` - property name as an UTF-8 `char*`
143 - return value
144 - true, if the given property name exsits on the object
145 - false, if there is no such property name or there was an error accessing the property
153 #include "jerryscript-ext/handler.h"
197 - [jerryx_set_properties](#jerryx_set_properties)
226 - [jerryx_set_properties](#jerryx_set_properties)
227 - [jerryx_release_property_entry](#jerryx_release_property_entry)
254 - `target_object` - object on which the entries will be set.
255 - `entries` - array of (name, jerry_value_t) pairs.
256 - return a [jerryx_register_result](#jerryx_register_result).
257 - if everything is ok, the struct's `result` field is set to a JS undefined value.
258 - otherwise the `result` field is an error object indicating the problem.
259 - in every case the `registered` field contains the number of successfully registered properties.
267 #include "jerryscript-ext/handler.h"
317 * `JERRYX_PROPERTY_NUMBER(NAME, NUMBER)` - creates a number entry.
318 * `JERRYX_PROPERTY_STRING(NAME, STR)` - creates an UTF-8 string entry. This string must be zero ter…
319 * `JERRYX_PROPERTY_STRING_SZ(NAME, STR, SIZE)` - creates an UTF-8 string entry using only `SIZE` by…
320 * `JERRYX_PROPERTY_BOOLEAN(NAME, VALUE)` - creates a boolean entry.
321 * `JERRYX_PROPERTY_FUNCTION(NAME, NATIVE)` - creates a native C function entry.
322 * `JERRYX_PROPERTY_UNDEFINED(NAME)` - creates an undefined property entry.
323 * `JERRYX_PROPERTY_LIST_END()` - indicates the end of the property list.
331 #include "jerryscript-ext/handler.h"
386 - [jerryx_property_entry](#jerryx_property_entry)
387 - [jerryx_release_property_entry](#jerryx_release_property_entry)
388 - [jerryx_register_result](#jerryx_register_result)
408 - `entires` - array of [jerryx_property_entry](#jerryx_property_entry).
409 - `register_result` - result of a previous [jerryx_set_properties](#jerryx_set_properties) call.
416 # Common external function handlers
435 - `func_obj_val` - the function object that was called (unused).
436 - `this_p` - the `this` value of the call (unused).
437 - `args_p` - the array of function arguments.
438 - `args_cnt` - the number of function arguments.
439 - return value - `jerry_value_t` representing boolean true, if only one argument
440 was passed and that argument was a boolean true. Note that the function does
445 - [jerryx_handler_register_global](#jerryx_handler_register_global)
462 - `func_obj_val` - the function object that was called (unused).
463 - `this_p` - the `this` value of the call (unused).
464 - `args_p` - the array of function arguments.
465 - `args_cnt` - the number of function arguments.
466 - return value - `jerry_value_t` representing boolean true, if only one argument
471 - [jerryx_handler_register_global](#jerryx_handler_register_global)
482 - [jerryx_handler_assert_fatal](#jerryx_handler_assert_fatal)
489 Expose garbage collector to scripts. If the first argument of the function
501 - `func_obj_val` - the function object that was called (unused).
502 - `this_p` - the `this` value of the call (unused).
503 - `args_p` - the array of function arguments (unused).
504 - `args_cnt` - the number of function arguments (unused).
505 - return value - `jerry_value_t` representing `undefined`.
509 - [jerryx_handler_register_global](#jerryx_handler_register_global)
517 arguments to strings and outputs them char-by-char using
535 - `func_obj_val` - the function object that was called (unused).
536 - `this_p` - the `this` value of the call (unused).
537 - `args_p` - the array of function arguments.
538 - `args_cnt` - the number of function arguments.
539 - return value - `jerry_value_t` representing `undefined` if all arguments could
544 - [jerryx_handler_register_global](#jerryx_handler_register_global)
545 - [jerry_port_print_char](05.PORT-API.md#jerry_port_print_char)
554 Register a JavaScript function in the global object.
567 - `name_p` - the name of the function to be registered.
568 - `handler_p` - the address of the external function handler.
569 - return value - `jerry_value_t` representing boolean true, if the operation was
578 #include "jerryscript-ext/handler.h"