U
Une bévue
i'm writting a C ext to Ruby.
i want the User from ruby being able to pass 1 or 2 arg(s) to this ruby,
without any Ruby wraper.
i know that in standard C their is no way to have a function with
default value.
since i'm not really writting "standard C" rather than a C ext to Rubt,
is their a workaround for that ?
for example :
rb_define_method(cRAliasRecord, "my_function", m_my_function_1_arg,
1);
rb_define_method(cRAliasRecord, "my_function", m_my_function_2_args,
2);
or something similar...
i want the User from ruby being able to pass 1 or 2 arg(s) to this ruby,
without any Ruby wraper.
i know that in standard C their is no way to have a function with
default value.
since i'm not really writting "standard C" rather than a C ext to Rubt,
is their a workaround for that ?
for example :
rb_define_method(cRAliasRecord, "my_function", m_my_function_1_arg,
1);
rb_define_method(cRAliasRecord, "my_function", m_my_function_2_args,
2);
or something similar...