@@ -19,6 +19,7 @@ namespace Ark::internal::Builtins::Mathematics
1919 * =end
2020 * @author https://github.com/SuperFola
2121 */
22+ // cppcheck-suppress constParameterReference
2223 Value exponential (std::vector<Value>& n, VM* vm [[maybe_unused]])
2324 {
2425 if (!types::check (n, ValueType::Number))
@@ -39,6 +40,7 @@ namespace Ark::internal::Builtins::Mathematics
3940 * =end
4041 * @author https://github.com/SuperFola
4142 */
43+ // cppcheck-suppress constParameterReference
4244 Value logarithm (std::vector<Value>& n, VM* vm [[maybe_unused]])
4345 {
4446 if (!types::check (n, ValueType::Number))
@@ -62,6 +64,7 @@ namespace Ark::internal::Builtins::Mathematics
6264 * =end
6365 * @author https://github.com/SuperFola
6466 */
67+ // cppcheck-suppress constParameterReference
6568 Value ceil_ (std::vector<Value>& n, VM* vm [[maybe_unused]])
6669 {
6770 if (!types::check (n, ValueType::Number))
@@ -82,6 +85,7 @@ namespace Ark::internal::Builtins::Mathematics
8285 * =end
8386 * @author https://github.com/SuperFola
8487 */
88+ // cppcheck-suppress constParameterReference
8589 Value floor_ (std::vector<Value>& n, VM* vm [[maybe_unused]])
8690 {
8791 if (!types::check (n, ValueType::Number))
@@ -103,6 +107,7 @@ namespace Ark::internal::Builtins::Mathematics
103107 * =end
104108 * @author https://github.com/SuperFola
105109 */
110+ // cppcheck-suppress constParameterReference
106111 Value round_ (std::vector<Value>& n, VM* vm [[maybe_unused]])
107112 {
108113 if (!types::check (n, ValueType::Number))
@@ -124,6 +129,7 @@ namespace Ark::internal::Builtins::Mathematics
124129 * =end
125130 * @author https://github.com/SuperFola
126131 */
132+ // cppcheck-suppress constParameterReference
127133 Value isnan_ (std::vector<Value>& n, VM* vm [[maybe_unused]])
128134 {
129135 if (n[0 ].valueType () != ValueType::Number)
@@ -142,6 +148,7 @@ namespace Ark::internal::Builtins::Mathematics
142148 * =end
143149 * @author https://github.com/SuperFola
144150 */
151+ // cppcheck-suppress constParameterReference
145152 Value isinf_ (std::vector<Value>& n, VM* vm [[maybe_unused]])
146153 {
147154 if (n[0 ].valueType () != ValueType::Number)
@@ -160,6 +167,7 @@ namespace Ark::internal::Builtins::Mathematics
160167 * =end
161168 * @author https://github.com/SuperFola
162169 */
170+ // cppcheck-suppress constParameterReference
163171 Value cos_ (std::vector<Value>& n, VM* vm [[maybe_unused]])
164172 {
165173 if (!types::check (n, ValueType::Number))
@@ -181,6 +189,7 @@ namespace Ark::internal::Builtins::Mathematics
181189 * =end
182190 * @author https://github.com/SuperFola
183191 */
192+ // cppcheck-suppress constParameterReference
184193 Value sin_ (std::vector<Value>& n, VM* vm [[maybe_unused]])
185194 {
186195 if (!types::check (n, ValueType::Number))
@@ -202,6 +211,7 @@ namespace Ark::internal::Builtins::Mathematics
202211 * =end
203212 * @author https://github.com/SuperFola
204213 */
214+ // cppcheck-suppress constParameterReference
205215 Value tan_ (std::vector<Value>& n, VM* vm [[maybe_unused]])
206216 {
207217 if (!types::check (n, ValueType::Number))
@@ -222,6 +232,7 @@ namespace Ark::internal::Builtins::Mathematics
222232 * =end
223233 * @author https://github.com/SuperFola
224234 */
235+ // cppcheck-suppress constParameterReference
225236 Value acos_ (std::vector<Value>& n, VM* vm [[maybe_unused]])
226237 {
227238 if (!types::check (n, ValueType::Number))
@@ -242,6 +253,7 @@ namespace Ark::internal::Builtins::Mathematics
242253 * =end
243254 * @author https://github.com/SuperFola
244255 */
256+ // cppcheck-suppress constParameterReference
245257 Value asin_ (std::vector<Value>& n, VM* vm [[maybe_unused]])
246258 {
247259 if (!types::check (n, ValueType::Number))
@@ -262,6 +274,7 @@ namespace Ark::internal::Builtins::Mathematics
262274 * =end
263275 * @author https://github.com/SuperFola
264276 */
277+ // cppcheck-suppress constParameterReference
265278 Value atan_ (std::vector<Value>& n, VM* vm [[maybe_unused]])
266279 {
267280 if (!types::check (n, ValueType::Number))
@@ -279,6 +292,7 @@ namespace Ark::internal::Builtins::Mathematics
279292 * @param value the Number
280293 * @author https://github.com/Gryfenfer97
281294 */
295+ // cppcheck-suppress constParameterReference
282296 Value cosh_ (std::vector<Value>& n, VM* vm [[maybe_unused]])
283297 {
284298 if (!types::check (n, ValueType::Number))
@@ -296,6 +310,7 @@ namespace Ark::internal::Builtins::Mathematics
296310 * @param value the Number
297311 * @author https://github.com/Gryfenfer97
298312 */
313+ // cppcheck-suppress constParameterReference
299314 Value sinh_ (std::vector<Value>& n, VM* vm [[maybe_unused]])
300315 {
301316 if (!types::check (n, ValueType::Number))
@@ -313,6 +328,7 @@ namespace Ark::internal::Builtins::Mathematics
313328 * @param value the Number
314329 * @author https://github.com/Gryfenfer97
315330 */
331+ // cppcheck-suppress constParameterReference
316332 Value tanh_ (std::vector<Value>& n, VM* vm [[maybe_unused]])
317333 {
318334 if (!types::check (n, ValueType::Number))
@@ -330,6 +346,7 @@ namespace Ark::internal::Builtins::Mathematics
330346 * @param value the Number
331347 * @author https://github.com/Gryfenfer97
332348 */
349+ // cppcheck-suppress constParameterReference
333350 Value acosh_ (std::vector<Value>& n, VM* vm [[maybe_unused]])
334351 {
335352 if (!types::check (n, ValueType::Number))
@@ -347,6 +364,7 @@ namespace Ark::internal::Builtins::Mathematics
347364 * @param value the Number
348365 * @author https://github.com/Gryfenfer97
349366 */
367+ // cppcheck-suppress constParameterReference
350368 Value asinh_ (std::vector<Value>& n, VM* vm [[maybe_unused]])
351369 {
352370 if (!types::check (n, ValueType::Number))
@@ -364,6 +382,7 @@ namespace Ark::internal::Builtins::Mathematics
364382 * @param value the Number
365383 * @author https://github.com/Gryfenfer97
366384 */
385+ // cppcheck-suppress constParameterReference
367386 Value atanh_ (std::vector<Value>& n, VM* vm [[maybe_unused]])
368387 {
369388 if (!types::check (n, ValueType::Number))
@@ -386,6 +405,7 @@ namespace Ark::internal::Builtins::Mathematics
386405 * =end
387406 * @author https://github.com/SuperFola
388407 */
408+ // cppcheck-suppress constParameterReference
389409 Value random (std::vector<Value>& n, VM* vm [[maybe_unused]])
390410 {
391411 static std::mt19937 gen { std::random_device ()() };
0 commit comments