C++ assert implementation in assert.h

后端 未结 4 1669
灰色年华
灰色年华 2020-12-16 18:05
00001 /* assert.h
00002    Copyright (C) 2001, 2003 Free Software Foundation, Inc.
00003    Written by Stephane Carrez (stcarrez@nerim.fr)       
00004 
00005 This f         


        
4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-16 18:21

    __assert is part of the implementation; in this case, a function in the library which will be called in case of assertion failure. And the (void) is simply to shut up compiler warnings about the unused results of the || operator.

提交回复
热议问题