mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-16 17:27:33 +02:00
For const colors, use define instead of declarations
This commit is contained in:
parent
2b849eb524
commit
5c55144691
1 changed files with 2 additions and 2 deletions
|
@ -91,8 +91,8 @@ typedef enum { STAGE_CLEAR_OR_MARKING
|
||||||
// Constant colors are defined here.
|
// Constant colors are defined here.
|
||||||
// The mark/clear colors are defined in the gc module because
|
// The mark/clear colors are defined in the gc module because
|
||||||
// the collector swaps their values as an optimization.
|
// the collector swaps their values as an optimization.
|
||||||
const int gc_color_red = 0; // Memory not to be GC'd, such as on the stack
|
#define gc_color_red 0 // Memory not to be GC'd, such as on the stack
|
||||||
const int gc_color_blue = 1; // Unallocated memory
|
#define gc_color_blue 1 // Unallocated memory
|
||||||
|
|
||||||
/* Utility functions */
|
/* Utility functions */
|
||||||
void **vpbuffer_realloc(void **buf, int *len);
|
void **vpbuffer_realloc(void **buf, int *len);
|
||||||
|
|
Loading…
Add table
Reference in a new issue