1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
use raw::{Local, Isolate};
extern "C" {
#[link_name = "Neon_Primitive_Undefined"]
pub fn undefined(out: &mut Local);
#[link_name = "Neon_Primitive_Null"]
pub fn null(out: &mut Local);
#[link_name = "Neon_Primitive_Boolean"]
pub fn boolean(out: &mut Local, b: bool);
#[link_name = "Neon_Primitive_BooleanValue"]
pub fn boolean_value(p: Local) -> bool;
#[link_name = "Neon_Primitive_Integer"]
pub fn integer(out: &mut Local, isolate: *mut Isolate, x: i32);
#[link_name = "Neon_Primitive_IsUint32"]
pub fn is_u32(p: Local) -> bool;
#[link_name = "Neon_Primitive_IsInt32"]
pub fn is_i32(p: Local) -> bool;
#[link_name = "Neon_Primitive_IntegerValue"]
pub fn integer_value(p: Local) -> i64;
#[link_name = "Neon_Primitive_Number"]
pub fn number(out: &mut Local, isolate: *mut Isolate, v: f64);
#[link_name = "Neon_Primitive_NumberValue"]
pub fn number_value(p: Local) -> f64;
}