summaryrefslogtreecommitdiff
path: root/builtin.h
diff options
context:
space:
mode:
authorTakashi Kokubun <[email protected]>2022-11-27 15:15:52 -0800
committerTakashi Kokubun <[email protected]>2022-11-27 21:11:33 -0800
commit6844bcc6b4cdc50def1c0d30d4e8b5045fb43443 ()
treee76f3b03120395c52007d1fcaec6e42ace508561 /builtin.h
parent6d26f78f684607a39249882ea686a231f8768bd5 (diff)
MJIT: Use a String buffer in builtin compilers
instead of FILE*. Using C.fprintf is slower than String manipulation on memory. I'm going to change the way MJIT writes files, and this is a prerequisite for it.
-rw-r--r--builtin.h2
1 files changed, 1 insertions, 1 deletions
@@ -13,7 +13,7 @@ struct rb_builtin_function {
const char * const name;
// for jit
- void (*compiler)(FILE *, long, unsigned, bool);
};
#define RB_BUILTIN_FUNCTION(_i, _name, _fname, _arity, _compiler) {\