that's it, I use rdoc to create documentation for my Ruby code that contains C extensions, but I am having problems with method arguments. Rdoc parses its names incorrectly and instead uses p1, p2, etc.
So, firstly, my extensions are actually compiled as C ++, so I have to use function definitions that look like this:
static VALUE
MyMethod(VALUE self, VALUE flazm, VALUE saszm)
{
return Qnil;
}
Rdoc seems to be expecting an old-style definition of "C" as follows:
static VALUE
MyMethod(self, flazm, saszm)
VALUE self;
VALUE flazm;
VALUE saszm;
{
return Qnil;
}
Anyway, can I do this job?
source
share