Skip to content

Commit 95fbeb9

Browse files
committed
ancient C-style comments
1 parent b596c8f commit 95fbeb9

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

tests/co_sim_io/c/checks.h

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,14 @@
1717
#include <math.h>
1818
#include <string.h>
1919

20-
// Before the 23 standard, C and C++ handled unused arguments differently.
21-
// C does not allow variable names to be omitted, but does not complain if
22-
// the variable is unused. On the other hand, C++ allows variable names to
23-
// be omitted, but will complain if it is not used when named.
24-
// The "[[maybe_unused]]" attribute is a C23 extension, so it's not applicable
25-
// here until support for earlier standards is dropped.
20+
/*
21+
Before the 23 standard, C and C++ handled unused arguments differently.
22+
C does not allow variable names to be omitted, but does not complain if
23+
the variable is unused. On the other hand, C++ allows variable names to
24+
be omitted, but will complain if it is not used when named.
25+
The "[[maybe_unused]]" attribute is a C23 extension, so it's not applicable
26+
here until support for earlier standards is dropped.
27+
*/
2628
#ifndef __cplusplus
2729
#define COSIMIO_MAYBE_UNUSED(variable_name) variable_name
2830
#else

0 commit comments

Comments
 (0)