glitchedhttps
Functions
glitchedhttps_debug.h File Reference

glitchedhttps debugging/error handling code. Mostly for internal use! More...

#include "glitchedhttps_api.h"
Include dependency graph for glitchedhttps_debug.h:

Go to the source code of this file.

Functions

GLITCHEDHTTPS_API int glitchedhttps_set_error_callback (void(*error_callback)(const char *))
 
GLITCHEDHTTPS_API int glitchedhttps_unset_error_callback ()
 

Detailed Description

glitchedhttps debugging/error handling code. Mostly for internal use!

Function Documentation

◆ glitchedhttps_set_error_callback()

GLITCHEDHTTPS_API int glitchedhttps_set_error_callback ( void(*)(const char *)  error_callback)

Sets the glitchedhttps error callback.

If errors occur, they'll be passed as a string into the provided callback function.

Parameters
error_callbackThe function to call when errors occur.
Returns
Whether the callback was set up correctly or not (1 for true and 0 for false).

◆ glitchedhttps_unset_error_callback()

GLITCHEDHTTPS_API int glitchedhttps_unset_error_callback ( )

Clears the glitchedhttps error callback (errors won't be printed anymore).