Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
29 lines (24 loc) · 941 Bytes

File metadata and controls

29 lines (24 loc) · 941 Bytes
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
#pragma once
#include <stdint.h>
typedef struct {
uint16_t builtin_string_id; // DEVS_BUILTIN_STRING_xxx
uint16_t builtin_idx; // 0 ... DEVS_BUILTIN_OBJECT___MAX, DEVS_FIRST_BUILTIN_FUNCTION ...
} devs_builtin_proto_entry_t;
typedef void (*devs_method_cb_t)(devs_ctx_t *ctx);
typedef value_t (*devs_prop_cb_t)(devs_ctx_t *ctx, value_t self);
typedef struct {
uint16_t builtin_string_id; // DEVS_BUILTIN_STRING_xxx
uint8_t num_args;
uint8_t flags; // DEVS_BUILTIN_FLAG_
union {
devs_method_cb_t meth;
devs_prop_cb_t prop;
} handler;
} devs_builtin_function_t;
#define DEVS_BUILTIN_MAX_ARGS (DEVS_MAX_STACK_DEPTH - 2)
#define DEVS_BUILTIN_FLAG_IS_PROPERTY 0x01
#define DEVS_BUILTIN_FLAG_ASYNC_CALL 0x02
#define DEVS_BUILTIN_FLAG_NO_SELF 0x04
#define DEVS_BUILTIN_FLAG_IS_CTOR 0x08
extern uint16_t devs_num_builtin_functions;
extern const devs_builtin_function_t devs_builtin_functions[];
Morty Proxy This is a proxified and sanitized view of the page, visit original site.