Skip to content
This repository
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 32 lines (26 sloc) 1.367 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
#ifndef RBX_HELPERS_HPP
#define RBX_HELPERS_HPP

namespace rubinius {
  struct CallFrame;
  class Module;
  class Class;
  class Symbol;
  class CompiledCode;
  class State;
  class Object;
  class Tuple;

  namespace Helpers {
    Object* const_get_under(State*, Module* under, Symbol* name, ConstantMissingReason* reason, Object* filter = NULL, bool replace_autoload = false);
    Object* const_get(State*, CallFrame* call_frame, Symbol* name, ConstantMissingReason* reason, Object* filter = NULL, bool replace_autoload = false);
    Object* const_missing_under(State*, Module* under, Symbol* sym, CallFrame* call_frame);
    Object* const_missing(State*, Symbol* sym, CallFrame* call_frame);
    void const_set(State*, CallFrame* call_frame, Symbol* name, Object* val);
    void const_set(State*, Module* mod, Symbol* name, Object* val);

    Class* open_class(State*, GCToken gct, CallFrame* call_frame, Object* super, Symbol* name, bool* created);
    Class* open_class(State*, GCToken gct, CallFrame* call_frame, Module* under, Object* super, Symbol* name, bool* created);
    Module* open_module(State*, GCToken gct, CallFrame* call_frame, Symbol* name);
    Module* open_module(State*, GCToken gct, CallFrame* call_frame, Module* under, Symbol* name);

    bool yield_debugger(State*, GCToken gct, CallFrame* call_frame, Object* bp);
  };
}

#endif
Something went wrong with that request. Please try again.