Skip to content

realse 1.0.0

Latest

Choose a tag to compare

@raph5 raph5 released this 29 Jul 10:22

Installation

This library is distributed as a single header file.

To use the library, define the implementation macro in one C file before
including the header:

#define PRINTJ_IMPLEMENTATION
#include "printj.h"

Then include the header wherever needed:

#include "printj.h"

By default, stdio.h is required. To disable all stdio.h usage, define the macro
PRINTJ_DONT_USE_STDIO before #including the library. The only required
standard headers are stddef.h and stdarg.h.

Similarly you can define PRINTJ_ASSERT, PRINTJ_MALLOC, PRINTJ_REALLOC and
PRINTJ_FREE macros by custom assert and malloc implementations.

The current implementation only works on 64-bit systems. Though it could
easily be ported to other architectures.