do not edit — generated by btf.
git.druid.rocksindexmilitantprogrammerastral_canvassrc/lib/error.h

src/lib/error.h


#ifndef CANVAS_ERROR_H
#define CANVAS_ERROR_H
 
/*
 * Process-wide last-error string (internal).
 *
 * Public A_LastError() reads this. canvasErrorSet also prints to stderr
 * so Init failures show up without the app checking the pointer.
 * Status codes themselves are 0 / -1 (see canvas.h); this is the text.
 */
 
/* Format into the last-error buffer and fprintf(stderr). */
void canvasErrorSet(const char *fmt, ...);
 
/* Pointer to the buffer; empty string if none. Never NULL. */
const char *canvasErrorGet(void);
 
/* Clear so a later success does not reuse a stale message. */
void canvasErrorClear(void);
 
#endif
powered by btf.