]> gitweb.factorcode.org Git - factor.git/blob - vm/os-macosx.hpp
Move vmpp to vm
[factor.git] / vm / os-macosx.hpp
1 #define DLLEXPORT extern "C" __attribute__((visibility("default")))
2 #define FACTOR_OS_STRING "macosx"
3 #define NULL_DLL "libfactor.dylib"
4
5 void init_signals(void);
6 void early_init(void);
7
8 const char *vm_executable_path(void);
9 const char *default_image_path(void);
10
11 DLLEXPORT void c_to_factor_toplevel(CELL quot);
12
13 INLINE void *ucontext_stack_pointer(void *uap)
14 {
15         ucontext_t *ucontext = (ucontext_t *)uap;
16         return ucontext->uc_stack.ss_sp;
17 }