1 /* Copyright (C) 2013 Free Software Foundation, Inc.
3 * This library is free software; you can redistribute it and/or
4 * modify it under the terms of the GNU Lesser General Public License
5 * as published by the Free Software Foundation; either version 3 of
6 * the License, or (at your option) any later version.
8 * This library is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * Lesser General Public License for more details.
13 * You should have received a copy of the GNU Lesser General Public
14 * License along with this library; if not, write to the Free Software
15 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19 #ifndef _SCM_VM_BUILTINS_H_
20 #define _SCM_VM_BUILTINS_H_
22 #ifdef BUILDING_LIBGUILE
24 #define FOR_EACH_VM_BUILTIN(M) \
27 M(abort_to_prompt, ABORT_TO_PROMPT) \
28 M(call_with_values, CALL_WITH_VALUES) \
29 M(call_with_current_continuation, CALL_WITH_CURRENT_CONTINUATION)
31 /* These enumerated values are embedded in RTL code, and as such are
32 part of Guile's ABI. */
35 #define ENUM(builtin, BUILTIN) SCM_VM_BUILTIN_##BUILTIN,
36 FOR_EACH_VM_BUILTIN(ENUM
)
41 SCM_INTERNAL SCM
scm_vm_builtin_name_to_index (SCM name
);
42 SCM_INTERNAL SCM
scm_vm_builtin_index_to_name (SCM idx
);
44 #endif /* BUILDING_LIBGUILE */
46 #endif /* _SCM_VM_BUILTINS_H_ */