Keywords
C2 has the following keywords:
Module related
modulelocalimportaspublic
Type related
boolcharconstelemsofenumf32f64falsefni8i16i32i64isizeniloffsetofreg8reg16reg32reg64sizeofstaticstructtemplatetlocalto_containertruetypeu8u16u32u64unionusizevoidvolatile
Control flow related
breakcasecontinuedefaultelsefallthroughforgotoifreturnswitchwhile
Other
asmassertstatic_assert
Feature selection
#if#ifdef#ifndef#elif#else#endif#error#warning
C keywords
In addition to the C2 keywords, there are a number of C keywords that can be used in interface files with their C semantics:
doubleexternfloatlongshortsignedsize_tssize_ttypedefunsigned
Other C keywords are reserved to avoid compatibility problems:
alignasalignofautoconstexprdoinlinenullptrregisterrestrictthread_localtypeoftypeof_unqual