Initial import of libdpf.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Ryan Henry 2026-09-24 14:08:32 -06:00
commit e4e666f459
4563 changed files with 1690372 additions and 0 deletions

28
thirdparty/hedley/test/constant.c vendored Normal file
View file

@ -0,0 +1,28 @@
#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable:4668)
#include <assert.h>
#include <stddef.h>
#pragma warning(pop)
#else
#include <assert.h>
#include <stddef.h>
#endif
#include "../hedley.h"
int main(int argc, char* argv[HEDLEY_ARRAY_PARAM(argc)]) {
char foo[HEDLEY_REQUIRE_CONSTEXPR(42)] = { 0, };
assert(argv[argc - 1] != NULL);
assert(foo[0] == 0);
#if defined(HEDLEY__IS_CONSTEXPR)
assert(HEDLEY__IS_CONSTEXPR(1729) == 1);
assert(HEDLEY__IS_CONSTEXPR(argc) == 0);
#endif
assert(HEDLEY_IS_CONSTANT(argc) == 0);
return 0;
}