Thu 16 Sep 2010 11:45:19 AM UTC, original submission:
Hi,
when trying to user config_new_option from a ruby script, it fails with error
ruby: error: (eval):6:in `config_new_option': too many arguments (17) (ArgumentError)
I investigated a bit, a discovered that ruby has a limit of 15 arguments to cfuncs:
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/vm_insnhelper.c?annotate=29040#l380
Here is my example script:
def weechat_init
Weechat.register('test', 'arno', '0.1', 'WTFPL', 'test', '', '')
config = Weechat.config_new("weechat", "", "")
section = Weechat.config_new_section(config, "history", 0, 0, "", "", "", "", "", "", "", "", "", "")
option = Weechat.config_new_option(config, section, "max_commands", "integer", "", "", 0, 32767, "100", "", 0, "", "", "", "", "", "")
return Weechat::WEECHAT_RC_OK
end
|