diff --git a/src/pax_gfx.c b/src/pax_gfx.c index c6efd2f..d303f6c 100644 --- a/src/pax_gfx.c +++ b/src/pax_gfx.c @@ -252,9 +252,9 @@ static inline float pax_flerp4(float x, float y, float e0, float e1, float e2, f /* ============ DEBUG ============ */ // Describe error. -char *pax_desc_err(pax_err_t error) { - char *unknown = "Unknown error"; - char *desc[] = { +const char *pax_desc_err(pax_err_t error) { + const char *unknown = "Unknown error"; + const char *desc[] = { "Success", "No framebuffer", "No memory", diff --git a/src/pax_gfx.h b/src/pax_gfx.h index 24fa094..014146a 100644 --- a/src/pax_gfx.h +++ b/src/pax_gfx.h @@ -40,19 +40,19 @@ extern "C" { extern pax_err_t pax_last_error; // Describe error. -char *pax_desc_err (pax_err_t error); +const char *pax_desc_err (pax_err_t error); // Debug stuff. -void pax_debug (pax_buf_t *buf); +void pax_debug (pax_buf_t *buf); /* ===== MULTI-CORE RENDERING ==== */ // If multi-core rendering is enabled, wait for the other core. -void pax_join (); +void pax_join (); // Enable multi-core rendering. // You must specify the core number to use. -void pax_enable_multicore (int core); +void pax_enable_multicore (int core); // Disable multi-core rendering. -void pax_disable_multicore (); +void pax_disable_multicore (); /* ============ BUFFER =========== */