aboutsummaryrefslogtreecommitdiff
path: root/src/cube_generic.h
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2024-06-20 14:07:51 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2024-06-20 14:07:51 +0200
commit71c0188306377940ae172dceb58f2bd5f4fcdb4f (patch)
tree7f08457ecfb35f908ec26929ebd84d8a0ca125ae /src/cube_generic.h
parente986713657bc5f9880e91ed49dd9b0d0227f048d (diff)
downloadnissy-core-71c0188306377940ae172dceb58f2bd5f4fcdb4f.tar.gz
nissy-core-71c0188306377940ae172dceb58f2bd5f4fcdb4f.zip
Changed logger from va_args to ...
Diffstat (limited to 'src/cube_generic.h')
-rw-r--r--src/cube_generic.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/cube_generic.h b/src/cube_generic.h
index d3080f7..7095c3a 100644
--- a/src/cube_generic.h
+++ b/src/cube_generic.h
@@ -65,16 +65,16 @@ isconsistent(cube_t cube)
65 return true; 65 return true;
66 66
67inconsistent_ep: 67inconsistent_ep:
68 _log("Inconsistent EP\n"); 68 LOG("Inconsistent EP\n");
69 return false; 69 return false;
70inconsistent_cp: 70inconsistent_cp:
71 _log("Inconsistent CP\n"); 71 LOG("Inconsistent CP\n");
72 return false; 72 return false;
73inconsistent_eo: 73inconsistent_eo:
74 _log("Inconsistent EO\n"); 74 LOG("Inconsistent EO\n");
75 return false; 75 return false;
76inconsistent_co: 76inconsistent_co:
77 _log("Inconsistent CO\n"); 77 LOG("Inconsistent CO\n");
78 return false; 78 return false;
79} 79}
80 80
@@ -114,13 +114,13 @@ issolvable(cube_t cube)
114 return true; 114 return true;
115 115
116issolvable_parity: 116issolvable_parity:
117 _log("EP and CP parities are different\n"); 117 LOG("EP and CP parities are different\n");
118 return false; 118 return false;
119issolvable_eo: 119issolvable_eo:
120 _log("Odd number of flipped edges\n"); 120 LOG("Odd number of flipped edges\n");
121 return false; 121 return false;
122issolvable_co: 122issolvable_co:
123 _log("Sum of corner orientation is not multiple of 3\n"); 123 LOG("Sum of corner orientation is not multiple of 3\n");
124 return false; 124 return false;
125} 125}
126 126
@@ -161,7 +161,7 @@ applymoves_finish:
161 return cube; 161 return cube;
162 162
163applymoves_error: 163applymoves_error:
164 _log("applymoves error\n"); 164 LOG("applymoves error\n");
165 return zero; 165 return zero;
166} 166}
167 167
@@ -238,7 +238,7 @@ move(cube_t c, uint8_t m)
238 case _move_B3: 238 case _move_B3:
239 return _move(B3, c); 239 return _move(B3, c);
240 default: 240 default:
241 _log("move error, unknown move\n"); 241 LOG("move error, unknown move\n");
242 return zero; 242 return zero;
243 } 243 }
244} 244}

Generated with cgit - Back to sebastiano.tronto.net