summary refs log blame commit diff stats
path: root/src/doc.c
blob: 33a283eb69c5a7e785f0ef721ea49e79da39fb73 (plain) (tree)































                                                                        
/*
 * 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