Skip to content

static_assert is only usable from C++ #1573

@ccawley2011

Description

@ccawley2011

OpenWatcom currently supports static_assert when building with C++11, but is currently unavailable in C code. In C23, static_assert is a keyword like in C++11, while in C11 it's a macro defined in assert.h that maps onto the _Static_assert keyword.

https://en.cppreference.com/w/c/language/static_assert.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions