forked from JuliaLang/julia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
builtin_proto.h
43 lines (35 loc) · 1.23 KB
/
builtin_proto.h
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
// This file is a part of Julia. License is MIT: https://julialang.org/license
#ifndef JL_BUILTIN_PROTO_H
#define JL_BUILTIN_PROTO_H
#ifdef __cplusplus
extern "C" {
#endif
// declarations for julia-callable builtin functions
#ifdef DEFINE_BUILTIN_GLOBALS
#define DECLARE_BUILTIN(name) \
JL_CALLABLE(jl_f_##name); \
jl_value_t *jl_builtin_##name
#else
#define DECLARE_BUILTIN(name) \
JL_CALLABLE(jl_f_##name); \
extern jl_value_t *jl_builtin_##name
#endif
DECLARE_BUILTIN(throw); DECLARE_BUILTIN(is);
DECLARE_BUILTIN(typeof); DECLARE_BUILTIN(sizeof);
DECLARE_BUILTIN(issubtype); DECLARE_BUILTIN(isa);
DECLARE_BUILTIN(_apply); DECLARE_BUILTIN(_apply_pure);
DECLARE_BUILTIN(_apply_latest);
DECLARE_BUILTIN(isdefined); DECLARE_BUILTIN(nfields);
DECLARE_BUILTIN(tuple); DECLARE_BUILTIN(svec);
DECLARE_BUILTIN(getfield); DECLARE_BUILTIN(setfield);
DECLARE_BUILTIN(fieldtype); DECLARE_BUILTIN(arrayref);
DECLARE_BUILTIN(arrayset); DECLARE_BUILTIN(arraysize);
DECLARE_BUILTIN(apply_type); DECLARE_BUILTIN(applicable);
DECLARE_BUILTIN(invoke); DECLARE_BUILTIN(_expr);
DECLARE_BUILTIN(typeassert); DECLARE_BUILTIN(ifelse);
DECLARE_BUILTIN(_typevar);
JL_CALLABLE(jl_f_invoke_kwsorter);
#ifdef __cplusplus
}
#endif
#endif