Add WUMS_DEPENDS_ON macro, bump version to 0.3.2

This commit is contained in:
Maschell 2023-01-06 15:15:15 +01:00
parent 42a0ef7472
commit a2ca8a5777
3 changed files with 11 additions and 2 deletions

View File

@ -37,6 +37,10 @@ extern "C" {
extern const char wums_meta_##id[] WUMS_SECTION("meta"); \
const char wums_meta_##id[] = #id "=" value
#define WUMS_DEPENDS_ON(id) \
extern const char wums_depends_on_##id[] WUMS_SECTION("dependencies"); \
const char wums_depends_on_##id[] = #id
#ifdef __cplusplus
}
#endif

View File

@ -41,7 +41,7 @@ extern "C" {
#define WUMS_MODULE_EXPORT_NAME(x) \
WUMS_META(export_name, x); \
WUMS_META(wums, "0.3.1"); \
WUMS_META(wums, "0.3.2"); \
WUMS_USE_WUT_MALLOC(); \
WUMS_USE_WUT_SOCKETS(); \
WUMS_USE_WUT_NEWLIB(); \

View File

@ -13,5 +13,10 @@ SECTIONS
.wums.hooks : {
*(.wums.hooks*)
KEEP(*(.wums.hooks*))
} > datamem
} > datamem
.wums.dependencies : {
*(.wums.dependencies*)
KEEP(*(.wums.dependencies*))
} > datamem
}