aboutsummaryrefslogtreecommitdiffstats
path: root/insns.def
diff options
context:
space:
mode:
Diffstat (limited to 'insns.def')
-rw-r--r--insns.def14
1 files changed, 14 insertions, 0 deletions
diff --git a/insns.def b/insns.def
index 1b069ce37d..bd47c2c0b0 100644
--- a/insns.def
+++ b/insns.def
@@ -400,6 +400,20 @@ toregexp
/**
@c put
+ @e intern str to Symbol and push it.
+ @j 文字列 str をシンボルに変換してスタックにプッシュする。
+ */
+DEFINE_INSN
+intern
+()
+(VALUE str)
+(VALUE sym)
+{
+ sym = rb_str_intern(str);
+}
+
+/**
+ @c put
@e put new array initialized with num values on the stack.
@j 新しい配列をスタック上の num 個の値で初期化して生成しプッシュする。
*/