mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-18 17:14:20 +01: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.
12 lines
243 B
C
12 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
|