Fixed some C/C++ compiler errors due to stricter checks.
[rubinius.git] / machine / helpers.hpp
blobfc99c53971a8bdb7f2d636fe28a3a8167446e472
1 #ifndef RBX_HELPERS_HPP
2 #define RBX_HELPERS_HPP
4 #include "thread_state.hpp"
6 namespace rubinius {
7 struct CallFrame;
8 class Module;
9 class Class;
10 class Symbol;
11 class CompiledCode;
12 class ThreadState;
13 class Object;
14 class Tuple;
16 namespace Helpers {
17 Object* const_get_under(ThreadState*, Module* under, Symbol* name, ConstantMissingReason* reason, Object* filter = NULL, bool replace_autoload = false);
18 Object* const_get(ThreadState*, Symbol* name, ConstantMissingReason* reason, Object* filter = NULL, bool replace_autoload = false);
19 Object* const_missing_under(ThreadState*, Module* under, Symbol* sym);
20 Object* const_missing(ThreadState*, Symbol* sym);
21 void const_set(ThreadState*, Symbol* name, Object* val);
22 void const_set(ThreadState*, Module* mod, Symbol* name, Object* val);
24 Class* open_class(ThreadState*, Object* super, Symbol* name, bool* created);
25 Class* open_class(ThreadState*, Module* under, Object* super, Symbol* name, bool* created);
26 Module* open_module(ThreadState*, Symbol* name);
27 Module* open_module(ThreadState*, Module* under, Symbol* name);
31 #endif