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
20
thirdparty/hedley/test/require.c
vendored
Normal file
20
thirdparty/hedley/test/require.c
vendored
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#include "../hedley.h"
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
HEDLEY_DIAGNOSTIC_PUSH
|
||||
#pragma warning(disable:4668)
|
||||
#include <limits.h>
|
||||
HEDLEY_DIAGNOSTIC_POP
|
||||
#else
|
||||
#include <limits.h>
|
||||
#endif
|
||||
|
||||
static int add(int a, int b)
|
||||
HEDLEY_REQUIRE_MSG((a < b), "a must be less than b")
|
||||
{
|
||||
return a + b;
|
||||
}
|
||||
|
||||
int main(void) {
|
||||
return add(2, 3);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue