On Tue, Mar 1, 2011 at 00:05, Bram Moolenaar <[email protected]> wrote:
> I had a quick look and it looks good.
>
> I think assert.h is not available everywhere.  If you only use the
> assert() method, perhaps we can use a configure check and when assert.h
> is not available define it ourselves?  This could be in a test.h include
> file perhaps, so it can be reused in other unittests.

vim.h already unconditionally includes assert.h. So if is not
available, vim wouldn't compile.

Also, my BSD man page states that "assert macro appeared in Version 6
AT&T UNIX", which is the grand daddy of all the Unixes, so it's quite
safe to assume that assert.h is always present, even on very old
systems.

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui