Mercurial > vim
comparison src/nbdebug.h @ 31804:50555279168b
patch 9.0.1234: the code style has to be checked manually
Commit: https://github.com/vim/vim/commit/ebfec1c531f32d424bb2aca6e7391ef3bfcbfe20
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jan 22 21:14:53 2023 +0000
patch 9.0.1234: the code style has to be checked manually
Problem: The code style has to be checked manually.
Solution: Add basic code style checks in a test. Fix or avoid uncovered
problems.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 22 Jan 2023 22:15:04 +0100 |
parents | 038eb6d9003a |
children |
comparison
equal
deleted
inserted
replaced
31803:7a9569aecc51 | 31804:50555279168b |
---|---|
13 | 13 |
14 #ifdef NBDEBUG | 14 #ifdef NBDEBUG |
15 | 15 |
16 # ifndef ASSERT | 16 # ifndef ASSERT |
17 # define ASSERT(c) \ | 17 # define ASSERT(c) \ |
18 if (!(c)) { \ | 18 if (!(c)) \ |
19 { \ | |
19 fprintf(stderr, "Assertion failed: line %d, file %s\n", \ | 20 fprintf(stderr, "Assertion failed: line %d, file %s\n", \ |
20 __LINE__, __FILE__); \ | 21 __LINE__, __FILE__); \ |
21 fflush(stderr); \ | 22 fflush(stderr); \ |
22 abort(); \ | 23 abort(); \ |
23 } | 24 } |