mirror of
https://github.com/wiiu-env/WiiUModuleSystem.git
synced 2024-11-22 01:39:19 +01:00
Add WUMS_DEPENDS_ON macro, bump version to 0.3.2
This commit is contained in:
parent
42a0ef7472
commit
a2ca8a5777
@ -37,6 +37,10 @@ extern "C" {
|
|||||||
extern const char wums_meta_##id[] WUMS_SECTION("meta"); \
|
extern const char wums_meta_##id[] WUMS_SECTION("meta"); \
|
||||||
const char wums_meta_##id[] = #id "=" value
|
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
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -41,7 +41,7 @@ extern "C" {
|
|||||||
|
|
||||||
#define WUMS_MODULE_EXPORT_NAME(x) \
|
#define WUMS_MODULE_EXPORT_NAME(x) \
|
||||||
WUMS_META(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_MALLOC(); \
|
||||||
WUMS_USE_WUT_SOCKETS(); \
|
WUMS_USE_WUT_SOCKETS(); \
|
||||||
WUMS_USE_WUT_NEWLIB(); \
|
WUMS_USE_WUT_NEWLIB(); \
|
||||||
|
@ -13,5 +13,10 @@ SECTIONS
|
|||||||
.wums.hooks : {
|
.wums.hooks : {
|
||||||
*(.wums.hooks*)
|
*(.wums.hooks*)
|
||||||
KEEP(*(.wums.hooks*))
|
KEEP(*(.wums.hooks*))
|
||||||
} > datamem
|
} > datamem
|
||||||
|
|
||||||
|
.wums.dependencies : {
|
||||||
|
*(.wums.dependencies*)
|
||||||
|
KEEP(*(.wums.dependencies*))
|
||||||
|
} > datamem
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user