factor system.cpp and class-finder.cpp out of main.cpp

This commit is contained in:
Joel Dice
2007-07-20 08:36:31 -06:00
parent 9f91f221dd
commit 0f7a2137bf
16 changed files with 720 additions and 626 deletions

View File

@ -1,6 +1,8 @@
#ifndef COMMON_H
#define COMMON_H
#include "stdint.h"
#include "stdlib.h"
#include "stdarg.h"
@ -27,6 +29,8 @@
inline void* operator new(size_t, void* p) throw() { return p; }
namespace vm {
typedef void* object;
@ -127,6 +131,6 @@ mask(T* p)
return reinterpret_cast<T*>(reinterpret_cast<uintptr_t>(p) & PointerMask);
}
}
} // namespace vm
#endif//COMMON_H