summaryrefslogtreecommitdiffhomepage
path: root/ext
diff options
context:
space:
mode:
authorlstrzebinczyk <[email protected]>2017-03-20 21:35:07 +0100
committerTom Black <[email protected]>2017-03-27 13:45:54 -0400
commit79c50dab7f06e4ec288e79e61d0631fdf07b7264 (patch)
tree810156ff621084c9bf6268b1f4577ba82fb19b3e /ext
parent54b00eb9d3cba566bf80daf6be4c93c1149a7633 (diff)
downloadruby2d-79c50dab7f06e4ec288e79e61d0631fdf07b7264.tar.gz
ruby2d-79c50dab7f06e4ec288e79e61d0631fdf07b7264.zip
Text#text= will inspect it's input
Diffstat (limited to 'ext')
-rw-r--r--ext/ruby2d/ruby2d.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/ruby2d/ruby2d.c b/ext/ruby2d/ruby2d.c
index 0bc4214..bddc4c6 100644
--- a/ext/ruby2d/ruby2d.c
+++ b/ext/ruby2d/ruby2d.c
@@ -235,14 +235,14 @@ static R_VAL ruby2d_text_init(R_VAL self) {
/*
- * Ruby2D::Text#text=
+ * Ruby2D::Text#ext_text_set
*/
#if MRUBY
-static R_VAL ruby2d_text_equals(mrb_state* mrb, R_VAL self) {
+static R_VAL ruby2d_ext_text_set(mrb_state* mrb, R_VAL self) {
mrb_value text;
mrb_get_args(mrb, "o", &text);
#else
-static R_VAL ruby2d_text_equals(R_VAL self, R_VAL text) {
+static R_VAL ruby2d_ext_text_set(R_VAL self, R_VAL text) {
r_iv_set(self, "@text", text);
#endif
@@ -748,8 +748,8 @@ void Init_ruby2d() {
// Ruby2D::Text#init
r_define_method(ruby2d_text_class, "init", ruby2d_text_init, r_args_none);
- // Ruby2D::Text#text=
- r_define_method(ruby2d_text_class, "text=", ruby2d_text_equals, r_args_req(1));
+ // Ruby2D::Text#ext_text_set
+ r_define_method(ruby2d_text_class, "ext_text_set", ruby2d_ext_text_set, r_args_req(1));
// Ruby2D::Sound
R_CLASS ruby2d_sound_class = r_define_class(ruby2d_module, "Sound");