armink / FlashDB

An ultra-lightweight database that supports key-value and time series data | 一款支持 KV 数据和时序数据的超轻量级数据库
Apache License 2.0
1.71k stars 399 forks source link

[fdb] use native assert if FDB_USING_NATIVE_ASSERT is set #228

Closed benpicco closed 11 months ago

benpicco commented 11 months ago

This is a follow-up to #225

I was wondering why a failed assert would still get me stuck in the endless loop instead of printing the platform's error message. Turns out there is a separate FDB_ASSERT() - also make it use the native assert() when FDB_USING_NATIVE_ASSERT is set.