diff options
Diffstat (limited to 'support/dktools/dk4aopt05.ctr')
-rw-r--r-- | support/dktools/dk4aopt05.ctr | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/support/dktools/dk4aopt05.ctr b/support/dktools/dk4aopt05.ctr index 48302a94f8..8c33d1acff 100644 --- a/support/dktools/dk4aopt05.ctr +++ b/support/dktools/dk4aopt05.ctr @@ -2,7 +2,7 @@ copyright owner = Dirk Krause copyright year = 2015-xxxx -license = bsd +SPDX-License-Identifier: BSD-3-Clause @@ -11,6 +11,12 @@ license = bsd #include "dk4opt.h" #include "dk4aopt.h" +#if DK4_HAVE_ASSERT_H +#ifndef ASSERT_H_INCLUDED +#include <assert.h> +#define ASSERT_H_INCLUDED 1 +#endif +#endif int @@ -18,6 +24,10 @@ dk4app_opt_get_double_short(double *rp, dk4_app_t *app, dkChar c, dk4_er_t *erp) { dk4_option_t *optr; int back = 0; +#if DK4_USE_ASSERT + assert(NULL != app); + assert(NULL != rp); +#endif if ((NULL != rp) && (NULL != app)) { if (NULL != app->i_opt_short) { optr = (dk4_option_t *)dk4sto_it_find_like(app->i_opt_short, &c, 1); |