mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-12-02 21:00:13 -05:00
add ifndefs to all headers
This commit is contained in:
parent
e93c946198
commit
a60d815e92
91 changed files with 444 additions and 12 deletions
|
|
@ -14,6 +14,9 @@
|
|||
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef __ASSERT_HPP__
|
||||
#define __ASSERT_HPP__
|
||||
|
||||
#define STATIC_ASSERT(cond) assert::StaticAssert< (cond) >()
|
||||
#define STATIC_ARRAYLENGTH_ASSERT(array,size) STATIC_ASSERT(((sizeof(array)/sizeof(array[0]))==(size)))
|
||||
|
||||
|
|
@ -26,3 +29,5 @@ namespace assert
|
|||
struct StaticAssert<true>
|
||||
{};
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue