Skip to content

Commit

Permalink
static-assert
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebeaton committed Nov 27, 2024
1 parent f840410 commit 31a5254
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Library/OcBlitLib/OcBlitLib.c
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,9 @@ BlitLibVideoToVideo (
return RETURN_SUCCESS;
}

#define STRINGIFY2(X) #X
#define STRINGIFY(X) STRINGIFY2(X)

RETURN_STATUS
EFIAPI
OcBlitConfigure (
Expand All @@ -612,7 +615,7 @@ OcBlitConfigure (
INT8 PixelShl[4];
INT8 PixelShr[4];

STATIC_ASSERT (sizeof (OC_BLIT_CONFIGURE) % 64 == 0, "Incorrect alignment of OC_BLIT_CONFIGURE");
STATIC_ASSERT (0 == 1, STRINGIFY(__STDC__) ":" STRINGIFY(__STDC_VERSION__));

if (ConfigureSize == NULL) {
return RETURN_INVALID_PARAMETER;
Expand Down

0 comments on commit 31a5254

Please sign in to comment.