27 lines
		
	
	
		
			494 B
		
	
	
	
		
			C++
		
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			494 B
		
	
	
	
		
			C++
		
	
	
#undef _WIN32_WINNT
 | 
						|
#define _WIN32_WINNT 0x0501  // For AddVectoredExceptionHandler
 | 
						|
 | 
						|
#ifndef UNICODE
 | 
						|
#define UNICODE
 | 
						|
#endif
 | 
						|
 | 
						|
#include <windows.h>
 | 
						|
#include <shellapi.h>
 | 
						|
 | 
						|
namespace factor
 | 
						|
{
 | 
						|
 | 
						|
typedef char symbol_char;
 | 
						|
 | 
						|
#define FACTOR_OS_STRING "winnt"
 | 
						|
#define FACTOR_DLL L"factor.dll"
 | 
						|
#define FACTOR_DLL_NAME "factor.dll"
 | 
						|
 | 
						|
#define FACTOR_STDCALL __attribute__((stdcall))
 | 
						|
 | 
						|
void c_to_factor_toplevel(cell quot);
 | 
						|
FACTOR_STDCALL LONG exception_handler(PEXCEPTION_POINTERS pe);
 | 
						|
void open_console();
 | 
						|
 | 
						|
}
 |