diff options
Diffstat (limited to 'builtin.h')
-rw-r--r-- | builtin.h | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -11,17 +11,13 @@ struct rb_builtin_function { // for load const int index; const char * const name; - - // for jit - void (*compiler)(FILE *, long, unsigned, bool); }; -#define RB_BUILTIN_FUNCTION(_i, _name, _fname, _arity, _compiler) {\ - .name = #_name, \ +#define RB_BUILTIN_FUNCTION(_i, _name, _fname, _arity) {\ + .name = _i < 0 ? NULL : #_name, \ .func_ptr = (void *)_fname, \ .argc = _arity, \ .index = _i, \ - .compiler = _compiler, \ } void rb_load_with_builtin_functions(const char *feature_name, const struct rb_builtin_function *table); @@ -110,6 +106,8 @@ rb_vm_lvar(rb_execution_context_t *ec, int index) #endif } +#define LOCAL_PTR(local) local ## __ptr + // dump/load struct builtin_binary { |