Skip to content

Commit

Permalink
Add some const to pax_desc_err.
Browse files Browse the repository at this point in the history
  • Loading branch information
robotman2412 committed Jun 30, 2022
1 parent 204c937 commit e1dd420
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/pax_gfx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
10 changes: 5 additions & 5 deletions src/pax_gfx.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 =========== */

Expand Down

0 comments on commit e1dd420

Please sign in to comment.