]> gitweb.factorcode.org Git - factor.git/blobdiff - vm/os-macosx.hpp
Put brackets around ipv6 addresses in `inet6 present`
[factor.git] / vm / os-macosx.hpp
index c77d88adfba421b41ecc3f47429f2160126145bc..83a20541620838a9a31b35cb23a5fdba6485a213 100644 (file)
@@ -1,17 +1,18 @@
-#define DLLEXPORT extern "C" __attribute__((visibility("default")))
+namespace factor {
+
+#define VM_C_API extern "C" __attribute__((visibility("default")))
 #define FACTOR_OS_STRING "macosx"
-#define NULL_DLL "libfactor.dylib"
 
-void init_signals(void);
-void early_init(void);
+void early_init();
+
+const char* vm_executable_path();
+const char* default_image_path();
 
-const char *vm_executable_path(void);
-const char *default_image_path(void);
+#define UAP_STACK_POINTER(ucontext) (((ucontext_t*)ucontext)->uc_stack.ss_sp)
 
-DLLEXPORT void c_to_factor_toplevel(CELL quot);
+#define CODE_TO_FUNCTION_POINTER(code) (void)0
+#define CODE_TO_FUNCTION_POINTER_CALLBACK(vm, code) (void)0
+#define FUNCTION_CODE_POINTER(ptr) ptr
+#define FUNCTION_TOC_POINTER(ptr) ptr
 
-INLINE void *ucontext_stack_pointer(void *uap)
-{
-       ucontext_t *ucontext = (ucontext_t *)uap;
-       return ucontext->uc_stack.ss_sp;
 }