2009-05-04 02:46:13 -04:00
|
|
|
namespace factor
|
|
|
|
{
|
|
|
|
|
2009-05-04 02:00:30 -04:00
|
|
|
#define VM_C_API extern "C" __attribute__((visibility("default")))
|
2009-05-02 05:04:19 -04:00
|
|
|
#define FACTOR_OS_STRING "macosx"
|
|
|
|
#define NULL_DLL "libfactor.dylib"
|
|
|
|
|
|
|
|
void init_signals(void);
|
|
|
|
void early_init(void);
|
|
|
|
|
|
|
|
const char *vm_executable_path(void);
|
|
|
|
const char *default_image_path(void);
|
|
|
|
|
2009-05-04 02:00:30 -04:00
|
|
|
inline static void *ucontext_stack_pointer(void *uap)
|
2009-05-02 05:04:19 -04:00
|
|
|
{
|
|
|
|
ucontext_t *ucontext = (ucontext_t *)uap;
|
|
|
|
return ucontext->uc_stack.ss_sp;
|
|
|
|
}
|
2009-05-04 02:00:30 -04:00
|
|
|
|
|
|
|
void c_to_factor_toplevel(CELL quot);
|
2009-05-04 02:46:13 -04:00
|
|
|
|
|
|
|
}
|