mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 18:18:03 +00:00

This adds initial SQLite C ABI compatibility to Limbo to make sure we drive the Rust API in the right way that allows us to implement SQLite semantics.
11 lines
243 B
C
11 lines
243 B
C
#ifndef CHECK_H
|
|
|
|
#define CHECK_EQUAL(expected, actual) \
|
|
do { \
|
|
if ((expected) != (actual)) { \
|
|
fprintf(stderr, "%s:%d: Assertion failed: %d != %d\n", __FILE__, __LINE__, (expected), (actual)); \
|
|
exit(1); \
|
|
} \
|
|
} while (0)
|
|
|
|
#endif
|