Project

General

Profile

Actions

Feature #14454

closed

sys/debug.h: CTASSERT should use _Static_assert

Added by Toomas Soome 7 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
headers
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

The subject is really telling it all.

Testing done: full nightly build.


Related issues

Related to illumos gate - Bug #13894: compile time assertions need more uniquenessDuplicate

Actions
Related to illumos gate - Bug #12994: CTASSERT should not clash on same line numNew

Actions
Actions #1

Updated by Electric Monk 7 months ago

  • Gerrit CR set to 1985
Actions #2

Updated by Patrick Mooney 6 months ago

  • Related to Bug #13894: compile time assertions need more uniqueness added
  • Related to Bug #12994: CTASSERT should not clash on same line num added
Actions #3

Updated by Toomas Soome 3 months ago

  • Description updated (diff)
Actions #4

Updated by Electric Monk 3 months ago

  • Status changed from In Progress to Closed
  • % Done changed from 90 to 100

git commit 6328d71e9dd97ed4dfdf9425b5dc7b9deb6f579a

commit  6328d71e9dd97ed4dfdf9425b5dc7b9deb6f579a
Author: Toomas Soome <tsoome@me.com>
Date:   2022-05-18T15:31:03.000Z

    14454 sys/debug.h: CTASSERT should use _Static_assert
    Reviewed by: Robert Mustacchi <rm@fingolfin.org>
    Reviewed by: Patrick Mooney <pmooney@pfmooney.com>
    Approved by: Dan McDonald <danmcd@mnx.io>

Actions #5

Updated by Gordon Ross 3 months ago

The _Static_assert feature is in C11 and later: https://en.cppreference.com/w/c/language/_Static_assert

Actions

Also available in: Atom PDF