diff options
Diffstat (limited to 'src/doc.c')
-rw-r--r-- | src/doc.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/doc.c b/src/doc.c new file mode 100644 index 0000000..33a283e --- /dev/null +++ b/src/doc.c @@ -0,0 +1,32 @@ +/* + * Doc/test generation. See doctest.h for more information. + */ +#include "doctest.h" + +#ifdef DOCS +#include <stdio.h> + +#include "doctest.declare" + +struct docs { + int dummy; +}; + +void docs_for( struct docs *doc, char *sig, char *name, char *params ) { + printf("docs_for: %s %s (%s)\n", sig, name, params); +} + +void docs_line( struct docs *doc, char *s ) { + printf("docs_line: %s\n", s); +} + +void docs_testline( struct docs *doc, int lineno, char *file, char *s) { + printf("docs_testline: %s:%d: %s\n", file, lineno, s); +} + +int main(int argc, char *argv[]) { + struct docs doc = {0}; +#include "doctest.include" + return 0; +} +#endif |