hollyhock
appdef.hpp
1 #pragma once
2 
3 // volatile so the compiler doesn't optimise the section out
4 #define HOLLYHOCK_SECTION_STRING(name, str) \
5  __attribute__ ((section(".hollyhock_" #name))) \
6  volatile char hollyhock_ ## name [] = str;
7 
8 #define APP_NAME(app_name) \
9  HOLLYHOCK_SECTION_STRING(name, app_name)
10 #define APP_DESCRIPTION(app_description) \
11  HOLLYHOCK_SECTION_STRING(description, app_description)
12 #define APP_AUTHOR(app_author) \
13  HOLLYHOCK_SECTION_STRING(author, app_author)
14 #define APP_VERSION(app_version) \
15  HOLLYHOCK_SECTION_STRING(version, app_version)