From e2d673294c5f189ceaf020515166d463c0469bea Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Sun, 4 Mar 2012 23:40:30 +0100 Subject: [PATCH] Added a stub for assert(3). --- libmaxsi/include/assert.h | 44 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 libmaxsi/include/assert.h diff --git a/libmaxsi/include/assert.h b/libmaxsi/include/assert.h new file mode 100644 index 00000000..c1315a71 --- /dev/null +++ b/libmaxsi/include/assert.h @@ -0,0 +1,44 @@ +/****************************************************************************** + + COPYRIGHT(C) JONAS 'SORTIE' TERMANSEN 2012. + + This file is part of LibMaxsi. + + LibMaxsi is free software: you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License as published by the Free + Software Foundation, either version 3 of the License, or (at your option) + any later version. + + LibMaxsi is distributed in the hope that it will be useful, but WITHOUT ANY + WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for + more details. + + You should have received a copy of the GNU Lesser General Public License + along with LibMaxsi. If not, see . + + assert.h + Verify program assertion. + +******************************************************************************/ + +#ifndef _ASSERT_H +#define _ASSERT_H 1 + +#include + +__BEGIN_DECLS + +#ifdef assert +#undef assert +#endif + +#ifndef NDEBUG +#warning The assert macro is not implemented +#endif + +#define assert(ignore)((void) 0) + +__END_DECLS + +#endif