summaryrefslogtreecommitdiff
path: root/cesar/common/module.h
blob: 33570d7260fd1ad1df3c7f76d64fce02bc464856 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef common_module_h
#define common_module_h
/* Cesar project {{{
 *
 * Copyright (C) 2009 Spidcom
 *
 * <<<Licence>>>
 *
 * }}} */
/**
 * \file    common/module.h
 * \brief   Module header.
 * \ingroup common
 *
 * Gives information about built modules.
 */

#include "module_config.h"

/**
 * Return true if the given module was included in build.
 * \param  module  module to test, with underscores
 * \return  true if included (to be used as preprocessor conditional)
 */
#define MODULE_INCLUDED(module) \
    defined (_MODULE_INCLUDED_ ## module)

#endif /* common_module_h */