Flipper Developer Docs
Toggle main menu visibility
Main Page
Related Pages
Data Structures
Data Structures
Data Structure Index
Data Fields
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
y
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
y
Files
File List
Globals
All
_
a
b
c
d
e
f
g
i
j
l
m
n
o
p
r
s
t
v
w
Functions
_
a
b
c
d
e
f
g
i
j
l
m
n
o
p
r
s
t
v
w
Variables
Typedefs
a
b
c
d
e
f
g
i
m
n
p
r
s
t
v
Enumerations
a
b
c
d
e
f
g
i
n
o
p
r
s
v
Enumerator
c
e
f
g
i
n
o
r
s
v
Macros
_
d
e
f
r
v
w
Examples
▼
Flipper Developer Docs
►
App Development
►
Developer Tools
►
Expansion Modules
►
File Formats
►
JavaScript
►
Miscellaneous
►
System Programming
►
js_gui__widget
Deprecated List
►
Data Structures
▼
Files
▼
File List
►
applications
►
furi
▼
lib
►
bit_lib
►
ble_profile
►
datetime
►
digital_signal
►
drivers
►
flipper_application
►
flipper_format
►
FreeRTOS-glue
►
ibutton
►
infrared
►
lfrfid
▼
mjs
►
common
►
ffi
mjs_array.h
mjs_array_buf.h
mjs_array_buf_public.h
mjs_array_public.h
mjs_bcode.h
mjs_builtin.h
mjs_core.h
mjs_core_public.h
mjs_dataview.h
mjs_exec.h
mjs_exec_public.h
mjs_features.h
mjs_ffi.h
mjs_ffi_public.h
mjs_gc.h
mjs_gc_public.h
mjs_internal.h
mjs_json.h
mjs_license.h
mjs_mm.h
mjs_object.h
mjs_object_public.h
mjs_parser.h
mjs_primitive.h
mjs_primitive_public.h
mjs_string.h
mjs_string_public.h
mjs_tok.h
mjs_util.h
mjs_util_public.h
►
music_worker
►
nfc
►
one_wire
►
print
►
pulse_reader
►
signal_reader
►
subghz
►
toolbox
►
u8g2
►
update_util
err.h
mbedtls_cfg.h
►
targets
►
Globals
►
Examples
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
Loading...
Searching...
No Matches
mjs_primitive.h
1
/*
2
* Copyright (c) 2016 Cesanta Software Limited
3
* All rights reserved
4
*/
5
6
#ifndef MJS_PRIMITIVE_H
7
#define MJS_PRIMITIVE_H
8
9
#include "mjs_primitive_public.h"
10
#include "mjs_internal.h"
11
12
#if defined(__cplusplus)
13
extern
"C"
{
14
#endif
/* __cplusplus */
15
16
/*
17
* Convert a pointer to mjs_val_t. If pointer is not valid, mjs crashes.
18
*/
19
MJS_PRIVATE mjs_val_t mjs_legit_pointer_to_value(
void
* p);
20
21
/*
22
* Convert a pointer to mjs_val_t. If pointer is not valid, error is set
23
* in the mjs context.
24
*/
25
MJS_PRIVATE mjs_val_t mjs_pointer_to_value(
struct
mjs
*
mjs
,
void
* p);
26
27
/*
28
* Extracts a pointer from the mjs_val_t value.
29
*/
30
MJS_PRIVATE
void
* get_ptr(mjs_val_t v);
31
32
/*
33
* Implementation for JS isNaN()
34
*/
35
MJS_PRIVATE
void
mjs_op_isnan(
struct
mjs
*
mjs
);
36
37
/*
38
* Implementation for JS Number.toString()
39
*/
40
MJS_PRIVATE
void
mjs_number_to_string(
struct
mjs
*
mjs
);
41
42
#if defined(__cplusplus)
43
}
44
#endif
/* __cplusplus */
45
46
#endif
/* MJS_PRIMITIVE_H */
mjs
Definition
mjs_core.h:63
lib
mjs
mjs_primitive.h
Generated by
1.12.0