Skip to content

Commit ce61903

Browse files
authored
flambda-backend: Replace _Static_assert with CAML_STATIC_ASSERT (#2264)
use CAML_STATIC_ASSERT
1 parent ca54c9a commit ce61903

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

runtime/caml/custom.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ struct custom_operations {
3636
int (*compare_ext)(value v1, value v2);
3737
const struct custom_fixed_length* fixed_length;
3838
};
39-
_Static_assert(sizeof(struct custom_operations) == CUSTOM_OPS_STRUCT_SIZE,
40-
"Unexpected CUSTOM_OPS_STRUCT_SIZE");
39+
CAML_STATIC_ASSERT(sizeof(struct custom_operations) == CUSTOM_OPS_STRUCT_SIZE);
4140

4241
#define custom_finalize_default NULL
4342
#define custom_compare_default NULL

runtime4/caml/custom.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ struct custom_operations {
3939
int (*compare_ext)(value v1, value v2);
4040
const struct custom_fixed_length* fixed_length;
4141
};
42-
_Static_assert(sizeof(struct custom_operations) == CUSTOM_OPS_STRUCT_SIZE,
43-
"Unexpected CUSTOM_OPS_STRUCT_SIZE");
42+
CAML_STATIC_ASSERT(sizeof(struct custom_operations) == CUSTOM_OPS_STRUCT_SIZE);
4443

4544
#define custom_finalize_default NULL
4645
#define custom_compare_default NULL

0 commit comments

Comments
 (0)