Change puppyprint log function calls to defines (#632)

This commit is contained in:
Fazana
2023-06-07 12:58:22 +01:00
committed by GitHub
parent 42cf450ba8
commit 57f7338e6a
5 changed files with 13 additions and 21 deletions

View File

@@ -826,9 +826,7 @@ static void level_cmd_puppyvolume(void) {
if ((sPuppyVolumeStack[gPuppyVolumeCount] = mem_pool_alloc(gPuppyMemoryPool, sizeof(struct sPuppyVolume))) == NULL) {
sCurrentCmd = CMD_NEXT;
gPuppyError |= PUPPY_ERROR_POOL_FULL;
#ifdef PUPPYPRINT_DEBUG
append_puppyprint_log("Puppycamera volume allocation failed.");
#endif
return;
}
@@ -876,9 +874,7 @@ static void level_cmd_puppylight_node(void) {
#ifdef PUPPYLIGHTS
gPuppyLights[gNumLights] = mem_pool_alloc(gLightsPool, sizeof(struct PuppyLight));
if (gPuppyLights[gNumLights] == NULL) {
#ifdef PUPPYPRINT_DEBUG
append_puppyprint_log("Puppylight allocation failed.");
#endif
sCurrentCmd = CMD_NEXT;
return;
}