Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

Compiler define of module.json's name field #773

Open
jacobrosenthal opened this issue Apr 29, 2016 · 1 comment
Open

Compiler define of module.json's name field #773

jacobrosenthal opened this issue Apr 29, 2016 · 1 comment
Labels

Comments

@jacobrosenthal
Copy link
Contributor

Much to my happy surprise, I recently found the module.json version string in the yotta.

#define YOTTA_BLE_GAPBUTTON_VERSION_STRING "0.0.0"
#define YOTTA_BLE_GAPBUTTON_VERSION_MAJOR 0
#define YOTTA_BLE_GAPBUTTON_VERSION_MINOR 0
#define YOTTA_BLE_GAPBUTTON_VERSION_PATCH 0

Im hoping to put compile this into my code for obvious reporting and troubleshooting reasons. However Id like to use it from within packages/targets/etc that wont know the name of the module. How about generating #define YOTTA_NAME BLE_GAPBUTTON?

@jacobrosenthal
Copy link
Contributor Author

I see the only reason I have those defines is because my top level module is one of a set of all modules which are included. See my PR which sadly duplicates those defines, but theres no way to dig them out of the existing defines

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants