1. Files

btprnt writes itself to a single header file called btprnt.h. Defining BTPRNT_IMPL will define the functions, otherwise it is just function declarations.

<<btprnt.h>>=
#ifndef BTPRNT_H
#define BTPRNT_H
<<typedefs>>
<<errorcodes>>
<<btprnt_region_struct>>
<<funcdefs>>
#ifdef BTPRNT_IMPL
#include <math.h>
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
<<structs>>
<<static_funcdefs>>
<<funcs>>
#endif
#endif



prev | home | next