Skip to content

Instantly share code, notes, and snippets.

@agarie
Last active December 10, 2015 09:48
Show Gist options
  • Save agarie/4416494 to your computer and use it in GitHub Desktop.
Save agarie/4416494 to your computer and use it in GitHub Desktop.
Getting RDoc to work on C/C++ files.
/*
* This comment WON'T be processed.
*/
static VALUE undocumented_method(VALUE self) {
return Qnil;
}
/*
* This comment WILL be processed.
*/
static VALUE documented_method(VALUE self) {
}
void Init_klass() {
cKlass = rb_define_class("Klass", rb_cObject);
rb_define_method(cKlass, "undocumented_method", (METHOD)undocumented_method, 0);
rb_define_method(cKlass, "documented_method", documented_method, 0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment