VM: Refactor master.hpp to Factor style

db4
Erik Charlebois 2013-05-11 22:13:10 -04:00
parent ce6ffe91dd
commit 38802ce173
1 changed files with 23 additions and 24 deletions

View File

@ -33,7 +33,6 @@
#include <iomanip> #include <iomanip>
#include <limits> #include <limits>
#define FACTOR_STRINGIZE_I(x) #x #define FACTOR_STRINGIZE_I(x) #x
#define FACTOR_STRINGIZE(x) FACTOR_STRINGIZE_I(x) #define FACTOR_STRINGIZE(x) FACTOR_STRINGIZE_I(x)
@ -41,11 +40,13 @@
#if defined(__clang__) #if defined(__clang__)
#define FACTOR_COMPILER_VERSION "Clang (GCC " __VERSION__ ")" #define FACTOR_COMPILER_VERSION "Clang (GCC " __VERSION__ ")"
#elif defined(__INTEL_COMPILER) #elif defined(__INTEL_COMPILER)
#define FACTOR_COMPILER_VERSION "Intel C Compiler " FACTOR_STRINGIZE(__INTEL_COMPILER) #define FACTOR_COMPILER_VERSION \
"Intel C Compiler " FACTOR_STRINGIZE(__INTEL_COMPILER)
#elif defined(__GNUC__) #elif defined(__GNUC__)
#define FACTOR_COMPILER_VERSION "GCC " __VERSION__ #define FACTOR_COMPILER_VERSION "GCC " __VERSION__
#elif defined(_MSC_FULL_VER) #elif defined(_MSC_FULL_VER)
#define FACTOR_COMPILER_VERSION "Microsoft Visual C++ " FACTOR_STRINGIZE(_MSC_FULL_VER) #define FACTOR_COMPILER_VERSION \
"Microsoft Visual C++ " FACTOR_STRINGIZE(_MSC_FULL_VER)
#else #else
#define FACTOR_COMPILER_VERSION "unknown" #define FACTOR_COMPILER_VERSION "unknown"
#endif #endif
@ -58,7 +59,8 @@
#define FACTOR_64 #define FACTOR_64
#elif defined(i386) || defined(__i386) || defined(__i386__) || defined(_M_IX86) #elif defined(i386) || defined(__i386) || defined(__i386__) || defined(_M_IX86)
#define FACTOR_X86 #define FACTOR_X86
#elif (defined(__POWERPC__) || defined(__ppc__) || defined(_ARCH_PPC)) && (defined(__PPC64__) || defined(__64BIT__)) #elif(defined(__POWERPC__) || defined(__ppc__) || defined(_ARCH_PPC)) && \
(defined(__PPC64__) || defined(__64BIT__))
#define FACTOR_PPC64 #define FACTOR_PPC64
#define FACTOR_PPC #define FACTOR_PPC
#define FACTOR_64 #define FACTOR_64
@ -77,10 +79,7 @@
#endif #endif
/* Forward-declare this since it comes up in function prototypes */ /* Forward-declare this since it comes up in function prototypes */
namespace factor namespace factor { struct factor_vm; }
{
struct factor_vm;
}
/* Factor headers */ /* Factor headers */
#include "assert.hpp" #include "assert.hpp"