23 lines
		
	
	
		
			444 B
		
	
	
	
		
			C++
		
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			444 B
		
	
	
	
		
			C++
		
	
	
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 early_init();
 | 
						|
 | 
						|
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;
 | 
						|
}
 | 
						|
 | 
						|
void c_to_factor_toplevel(cell quot);
 | 
						|
 | 
						|
}
 |