]> 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 10aa515fd2da085847466b4f05d19d29c73937aa..83a20541620838a9a31b35cb23a5fdba6485a213 100644 (file)
@@ -1,17 +1,18 @@
+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(void);
-const char *default_image_path(void);
+const char* vm_executable_path();
+const char* default_image_path();
 
-inline static void *ucontext_stack_pointer(void *uap)
-{
-       ucontext_t *ucontext = (ucontext_t *)uap;
-       return ucontext->uc_stack.ss_sp;
-}
+#define UAP_STACK_POINTER(ucontext) (((ucontext_t*)ucontext)->uc_stack.ss_sp)
 
-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
+
+}