mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
Add notes to jerry_create_undefined, jerry_create_null and jerry_create_boolean (#4790)
JerryScript-DCO-1.0-Signed-off-by: Mate Dabis mdabis@inf.u-szeged.hu
This commit is contained in:
parent
c696bc9327
commit
f6eac3afdc
@ -7092,6 +7092,10 @@ jerry_create_shared_arraybuffer_external (const jerry_length_t size
|
||||
|
||||
Create a jerry_value_t representing a boolean value from the given boolean parameter.
|
||||
|
||||
*Notes*:
|
||||
- The boolean values (true/false) are fixed constants. Their values can be copied any number of times without calling
|
||||
[jerry_acquire_value](#jerry_acquire_value), and freeing it with [jerry_release_value](#jerry_release_value) is optional.
|
||||
|
||||
**Prototype**
|
||||
|
||||
```c
|
||||
@ -7460,6 +7464,10 @@ jerry_create_number_nan (void);
|
||||
|
||||
Creates and returns a `jerry_value_t` with type null object.
|
||||
|
||||
*Notes*:
|
||||
- The null value is a fixed constant. Its value can be copied any number of times without calling
|
||||
[jerry_acquire_value](#jerry_acquire_value), and freeing it with [jerry_release_value](#jerry_release_value) is optional.
|
||||
|
||||
**Prototype**
|
||||
|
||||
```c
|
||||
@ -8398,6 +8406,10 @@ main (void)
|
||||
|
||||
Creates a `jerry_value_t` representing an undefined value.
|
||||
|
||||
*Notes*:
|
||||
- The undefined value is a fixed constant. Its value can be copied any number of times without calling [jerry_acquire_value](#jerry_acquire_value), and freeing it with [jerry_release_value](#jerry_release_value) is optional.
|
||||
|
||||
|
||||
**Prototype**
|
||||
|
||||
```c
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user