0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-27 07:54:05 +01:00

ircd::mods::mapi: Add export section w/ macro.

This commit is contained in:
Jason Volk 2019-02-09 14:39:17 -08:00
parent 6df8fcf244
commit 09a4878fd1

View file

@ -11,6 +11,11 @@
#pragma once
#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.
namespace ircd::mapi
{
@ -34,7 +39,7 @@ namespace ircd::mapi
const char *const import_section_name
{
"ircd"
IRCD_MODULE_EXPORT_SECTION
};
}