Initial import of libdpf.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
commit
e4e666f459
4563 changed files with 1690372 additions and 0 deletions
13
thirdparty/hedley/test/flags.c
vendored
Normal file
13
thirdparty/hedley/test/flags.c
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#include "../hedley.h"
|
||||
|
||||
enum Foo {
|
||||
FOO_BAR = 1 << 0,
|
||||
FOO_BAZ = 1 << 1,
|
||||
FOO_QUX = 1 << 2
|
||||
} HEDLEY_FLAGS;
|
||||
|
||||
int main(void) {
|
||||
const enum Foo foo = HEDLEY_FLAGS_CAST(enum Foo, FOO_BAR | FOO_BAZ);
|
||||
|
||||
return HEDLEY_STATIC_CAST(int, foo);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue