diff options
author | SoniEx2 <endermoneymod@gmail.com> | 2019-10-25 18:37:26 -0300 |
---|---|---|
committer | SoniEx2 <endermoneymod@gmail.com> | 2019-10-25 18:37:26 -0300 |
commit | f6b8e76789e428ac264a393fbd60d77499b9abfd (patch) | |
tree | 00071db51e3ceb86e2fbce81c55ee136b5ae7ff8 /src/doc.c | |
parent | 9d4e28d4265a6a293b18a68ec4d51a4b086b20fa (diff) |
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 |