]> gitweb.factorcode.org Git - factor.git/blob - vm/os-macosx.hpp
Merge branch 'master' of git://factorcode.org/git/factor
[factor.git] / vm / os-macosx.hpp
1 namespace factor
2 {
3
4 #define VM_C_API extern "C" __attribute__((visibility("default")))
5 #define FACTOR_OS_STRING "macosx"
6 #define NULL_DLL "libfactor.dylib"
7
8 void init_signals(void);
9 void early_init(void);
10
11 const char *vm_executable_path(void);
12 const char *default_image_path(void);
13
14 inline static void *ucontext_stack_pointer(void *uap)
15 {
16         ucontext_t *ucontext = (ucontext_t *)uap;
17         return ucontext->uc_stack.ss_sp;
18 }
19
20 void c_to_factor_toplevel(cell quot);
21
22 }