Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

43 lines (30 sloc) 1.032 kb
#ifndef RBX_PRELUDE_HPP
#define RBX_PRELUDE_HPP
/**
* @file prelude.hpp
*
* Notably here, Symbols, Fixnums and true/false/nil are actually
* stored directly in the pointer value (and distinguished by the
* tag, see oop.hpp) but provided we do not attempt to dereference
* it, we can ALSO define a class and treat the pointer values as
* if they were real pointers to real objects of that class where
* typing is concerned. In the "instance methods", the this pointer
* is still the correct pointer value and can thus be used for the
* calculations needed.
*
* @see oop.hpp
*/
#include <stdint.h>
#include "util/optimize.hpp"
#include "flags.hpp"
namespace rubinius {
class VM;
/** Platform-dependent integer type large enough for pointers too. */
typedef intptr_t native_int;
typedef uintptr_t native_uint;
typedef native_int hashval;
#define STATE rubinius::VM* state
#define G(whatever) state->globals().whatever.get()
#define GO(whatever) state->globals().whatever
}
#endif
Jump to Line
Something went wrong with that request. Please try again.