star-mc

Parallel estimation of Monte Carlo integrators
git clone git://git.meso-star.fr/star-mc.git
Log | Files | Refs | README | LICENSE

commit 718dfa62ad7bd6568c4e0d8a7e158eef356ef2cf
parent 9bf2d4b470cecdc8d6d6b3c4461c812d633e5c23
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Wed,  1 Apr 2015 17:42:59 +0200

Add preprocessor directives to protect the inclusion of test_smc_utils.h

Diffstat:
Msrc/smc.h | 4++--
Msrc/smc_type_real.h | 1+
Msrc/test_smc_utils.h | 4++++
3 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/smc.h b/src/smc.h @@ -99,8 +99,8 @@ SMC_API const struct smc_type smc_double; ******************************************************************************/ SMC_API res_T smc_device_create - (struct logger* logger, - struct mem_allocator* allocator, + (struct logger* logger, /* May be NULL <=> use default logger */ + struct mem_allocator* allocator, /* May be NULL <=> use default allocator */ struct smc_device** dev); SMC_API res_T diff --git a/src/smc_type_real.h b/src/smc_type_real.h @@ -123,3 +123,4 @@ const struct smc_type CONCAT(smc_, SMC_TYPE_REAL) = { #undef SMC_REAL_FUNC__ #undef SMC_TYPE_REAL + diff --git a/src/test_smc_utils.h b/src/test_smc_utils.h @@ -29,6 +29,9 @@ * The fact that you are presently reading this means that you have had * knowledge of the CeCILL license and that you accept its terms. */ +#ifndef TEST_SMC_UTILS_H +#define TEST_SMC_UTILS_H + #include <rsys/mem_allocator.h> #include <stdio.h> @@ -43,3 +46,4 @@ check_memory_allocator(struct mem_allocator* allocator) } } +#endif /* TEST_SMC_UTILS_H */