Last active
December 10, 2015 09:48
-
-
Save agarie/4416494 to your computer and use it in GitHub Desktop.
Getting RDoc to work on C/C++ files.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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