ledit

Text editor (WIP)
git clone git://lumidify.org/ledit.git (fast, but not encrypted)
git clone https://lumidify.org/ledit.git (encrypted, but very slow)
git clone git://4kcetb7mo7hj6grozzybxtotsub5bempzo4lirzc3437amof2c2impyd.onion/ledit.git (over tor)
Log | Files | Refs | README | LICENSE

assert.h (447B)


      1 #ifndef _LEDIT_ASSERT_H_
      2 #define _LEDIT_ASSERT_H_
      3 
      4 /* based on the assert found in OpenBSD */
      5 void ledit_assert_impl(const char *file, int line, const char *func, const char *failedexpr);
      6 #define ledit_assert(e) ((e) ? (void)0 : ledit_assert_impl(__FILE__, __LINE__, __func__, #e))
      7 /* used by some functions like buffer_get_line */
      8 #define ledit_assert_manual(e, file, line, func) ((e) ? (void)0 : ledit_assert_impl(file, line, func, #e))
      9 
     10 #endif