1 #ifndef RBX_HELPERS_HPP
2 #define RBX_HELPERS_HPP
4 #include "thread_state.hpp"
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
);