mirror of
https://github.com/matrix-construct/construct
synced 2025-01-14 00:34:18 +01:00
ircd::mods::mapi: Add export section w/ macro.
This commit is contained in:
parent
6df8fcf244
commit
09a4878fd1
1 changed files with 6 additions and 1 deletions
|
@ -11,6 +11,11 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
#define HAVE_IRCD_MAPI_H
|
#define HAVE_IRCD_MAPI_H
|
||||||
|
|
||||||
|
#define IRCD_MODULE_EXPORT_SECTION "ircd"
|
||||||
|
|
||||||
|
#define IRCD_MODULE_EXPORT \
|
||||||
|
__attribute__((section(IRCD_MODULE_EXPORT_SECTION)))
|
||||||
|
|
||||||
/// Module API: Interface for module developers.
|
/// Module API: Interface for module developers.
|
||||||
namespace ircd::mapi
|
namespace ircd::mapi
|
||||||
{
|
{
|
||||||
|
@ -34,7 +39,7 @@ namespace ircd::mapi
|
||||||
|
|
||||||
const char *const import_section_name
|
const char *const import_section_name
|
||||||
{
|
{
|
||||||
"ircd"
|
IRCD_MODULE_EXPORT_SECTION
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue