The programs display the version number and so it may be helpful for certain situations to specify nano version numbers for this project.
One such use case is if I were to release a development package for my own testing, I would like it to communicate the development status.
With this change I can now do this in one of two ways (to achieve something like "0.5.4-dev"):
1) Specify the custom nano on the command line like:
# fake clean build -d "-Dbyte_dump_nano_version_prefix=\"-\"" -d "-Dbyte_dump_nano_version=\"dev\""
2) Specify the custom nano verson in the data/buildsettings file, prepending the defines_all Object's Content like:
defines_all -Dbyte_dump_nano_version_prefix="-" -Dbyte_dump_nano_version="dev"
#define byte_dump_major_version f_string_ascii_0
#define byte_dump_minor_version f_string_ascii_5
#define byte_dump_micro_version f_string_ascii_4
- #define byte_dump_version byte_dump_major_version f_string_ascii_period byte_dump_minor_version f_string_ascii_period byte_dump_micro_version
+
+ #ifndef byte_dump_nano_version_prefix
+ #define byte_dump_nano_version_prefix
+ #endif
+
+ #ifndef byte_dump_nano_version
+ #define byte_dump_nano_version
+ #endif
+
+ #define byte_dump_version byte_dump_major_version f_string_ascii_period byte_dump_minor_version f_string_ascii_period byte_dump_micro_version byte_dump_nano_version_prefix byte_dump_nano_version
#endif // _di_byte_dump_version_
#ifndef _di_byte_dump_name_
#define control_major_version f_string_ascii_0
#define control_minor_version f_string_ascii_5
#define control_micro_version f_string_ascii_4
- #define control_version control_major_version f_string_ascii_period control_minor_version f_string_ascii_period control_micro_version
+
+ #ifndef control_nano_version_prefix
+ #define control_nano_version_prefix
+ #endif
+
+ #ifndef control_nano_version
+ #define control_nano_version
+ #endif
+
+ #define control_version control_major_version f_string_ascii_period control_minor_version f_string_ascii_period control_micro_version control_nano_version_prefix control_nano_version
#endif // _di_control_version_
#ifndef _di_control_name_
#define controller_major_version f_string_ascii_0
#define controller_minor_version f_string_ascii_5
#define controller_micro_version f_string_ascii_4
- #define controller_version controller_major_version f_string_ascii_period controller_minor_version f_string_ascii_period controller_micro_version
+
+ #ifndef controller_nano_version_prefix
+ #define controller_nano_version_prefix
+ #endif
+
+ #ifndef controller_nano_version
+ #define controller_nano_version
+ #endif
+
+ #define controller_version controller_major_version f_string_ascii_period controller_minor_version f_string_ascii_period controller_micro_version controller_nano_version_prefix controller_nano_version
#endif // _di_controller_version_
#ifndef _di_controller_name_
#define fake_major_version f_string_ascii_0
#define fake_minor_version f_string_ascii_5
#define fake_micro_version f_string_ascii_4
- #define fake_version fake_major_version f_string_ascii_period fake_minor_version f_string_ascii_period fake_micro_version
+
+ #ifndef fake_nano_version_prefix
+ #define fake_nano_version_prefix
+ #endif
+
+ #ifndef fake_nano_version
+ #define fake_nano_version
+ #endif
+
+ #define fake_version fake_major_version f_string_ascii_period fake_minor_version f_string_ascii_period fake_micro_version fake_nano_version_prefix fake_nano_version
#endif // _di_fake_version_
#ifndef _di_fake_name_
#define firewall_major_version f_string_ascii_0
#define firewall_minor_version f_string_ascii_5
#define firewall_micro_version f_string_ascii_4
- #define firewall_version firewall_major_version f_string_ascii_period firewall_minor_version f_string_ascii_period firewall_micro_version
+
+ #ifndef firewall_nano_version_prefix
+ #define firewall_nano_version_prefix
+ #endif
+
+ #ifndef firewall_nano_version
+ #define firewall_nano_version
+ #endif
+
+ #define firewall_version firewall_major_version f_string_ascii_period firewall_minor_version f_string_ascii_period firewall_micro_version firewall_nano_version_prefix firewall_nano_version
#endif // _di_firewall_version_
#ifndef _di_firewall_name_
#define fss_basic_list_read_major_version f_string_ascii_0
#define fss_basic_list_read_minor_version f_string_ascii_5
#define fss_basic_list_read_micro_version f_string_ascii_4
- #define fss_basic_list_read_version fss_basic_list_read_major_version f_string_ascii_period fss_basic_list_read_minor_version f_string_ascii_period fss_basic_list_read_micro_version
+
+ #ifndef fss_basic_list_read_nano_version_prefix
+ #define fss_basic_list_read_nano_version_prefix
+ #endif
+
+ #ifndef fss_basic_list_read_nano_version
+ #define fss_basic_list_read_nano_version
+ #endif
+
+ #define fss_basic_list_read_version fss_basic_list_read_major_version f_string_ascii_period fss_basic_list_read_minor_version f_string_ascii_period fss_basic_list_read_micro_version fss_basic_list_read_nano_version_prefix fss_basic_list_read_nano_version
#endif // _di_fss_basic_list_read_version_
#ifndef _di_fss_basic_list_read_name_
#define fss_basic_list_write_major_version f_string_ascii_0
#define fss_basic_list_write_minor_version f_string_ascii_5
#define fss_basic_list_write_micro_version f_string_ascii_4
- #define fss_basic_list_write_version fss_basic_list_write_major_version f_string_ascii_period fss_basic_list_write_minor_version f_string_ascii_period fss_basic_list_write_micro_version
+
+ #ifndef fss_basic_list_write_nano_version_prefix
+ #define fss_basic_list_write_nano_version_prefix
+ #endif
+
+ #ifndef fss_basic_list_write_nano_version
+ #define fss_basic_list_write_nano_version
+ #endif
+
+ #define fss_basic_list_write_version fss_basic_list_write_major_version f_string_ascii_period fss_basic_list_write_minor_version f_string_ascii_period fss_basic_list_write_micro_version fss_basic_list_write_nano_version_prefix fss_basic_list_write_nano_version
#endif // _di_fss_basic_list_write_version_
#ifndef _di_fss_basic_list_write_name_
#define fss_basic_read_major_version f_string_ascii_0
#define fss_basic_read_minor_version f_string_ascii_5
#define fss_basic_read_micro_version f_string_ascii_4
- #define fss_basic_read_version fss_basic_read_major_version f_string_ascii_period fss_basic_read_minor_version f_string_ascii_period fss_basic_read_micro_version
+
+ #ifndef fss_basic_read_nano_version_prefix
+ #define fss_basic_read_nano_version_prefix
+ #endif
+
+ #ifndef fss_basic_read_nano_version
+ #define fss_basic_read_nano_version
+ #endif
+
+ #define fss_basic_read_version fss_basic_read_major_version f_string_ascii_period fss_basic_read_minor_version f_string_ascii_period fss_basic_read_micro_version fss_basic_read_nano_version_prefix fss_basic_read_nano_version
#endif // _di_fss_basic_read_version_
#ifndef _di_fss_basic_read_name_
#define fss_basic_write_major_version f_string_ascii_0
#define fss_basic_write_minor_version f_string_ascii_5
#define fss_basic_write_micro_version f_string_ascii_4
- #define fss_basic_write_version fss_basic_write_major_version f_string_ascii_period fss_basic_write_minor_version f_string_ascii_period fss_basic_write_micro_version
+
+ #ifndef fss_basic_write_nano_version_prefix
+ #define fss_basic_write_nano_version_prefix
+ #endif
+
+ #ifndef fss_basic_write_nano_version
+ #define fss_basic_write_nano_version
+ #endif
+
+ #define fss_basic_write_version fss_basic_write_major_version f_string_ascii_period fss_basic_write_minor_version f_string_ascii_period fss_basic_write_micro_version fss_basic_write_nano_version_prefix fss_basic_write_nano_version
#endif // _di_fss_basic_write_version_
#ifndef _di_fss_basic_write_name_
#define fss_embedded_list_read_major_version f_string_ascii_0
#define fss_embedded_list_read_minor_version f_string_ascii_5
#define fss_embedded_list_read_micro_version f_string_ascii_4
- #define fss_embedded_list_read_version fss_embedded_list_read_major_version f_string_ascii_period fss_embedded_list_read_minor_version f_string_ascii_period fss_embedded_list_read_micro_version
+
+ #ifndef fss_embedded_list_read_nano_version_prefix
+ #define fss_embedded_list_read_nano_version_prefix
+ #endif
+
+ #ifndef fss_embedded_list_read_nano_version
+ #define fss_embedded_list_read_nano_version
+ #endif
+
+ #define fss_embedded_list_read_version fss_embedded_list_read_major_version f_string_ascii_period fss_embedded_list_read_minor_version f_string_ascii_period fss_embedded_list_read_micro_version fss_embedded_list_read_nano_version_prefix fss_embedded_list_read_nano_version
#endif // _di_fss_embedded_list_read_version_
#ifndef _di_fss_embedded_list_read_name_
#define fss_embedded_list_write_major_version f_string_ascii_0
#define fss_embedded_list_write_minor_version f_string_ascii_5
#define fss_embedded_list_write_micro_version f_string_ascii_4
- #define fss_embedded_list_write_version fss_embedded_list_write_major_version f_string_ascii_period fss_embedded_list_write_minor_version f_string_ascii_period fss_embedded_list_write_micro_version
+
+ #ifndef fss_embedded_list_write_nano_version_prefix
+ #define fss_embedded_list_write_nano_version_prefix
+ #endif
+
+ #ifndef fss_embedded_list_write_nano_version
+ #define fss_embedded_list_write_nano_version
+ #endif
+
+ #define fss_embedded_list_write_version fss_embedded_list_write_major_version f_string_ascii_period fss_embedded_list_write_minor_version f_string_ascii_period fss_embedded_list_write_micro_version fss_embedded_list_write_nano_version_prefix fss_embedded_list_write_nano_version
#endif // _di_fss_embedded_list_write_version_
#ifndef _di_fss_embedded_list_write_name_
#define fss_extended_list_read_major_version f_string_ascii_0
#define fss_extended_list_read_minor_version f_string_ascii_5
#define fss_extended_list_read_micro_version f_string_ascii_4
- #define fss_extended_list_read_version fss_extended_list_read_major_version f_string_ascii_period fss_extended_list_read_minor_version f_string_ascii_period fss_extended_list_read_micro_version
+
+ #ifndef fss_extended_list_read_nano_version_prefix
+ #define fss_extended_list_read_nano_version_prefix
+ #endif
+
+ #ifndef fss_extended_list_read_nano_version
+ #define fss_extended_list_read_nano_version
+ #endif
+
+ #define fss_extended_list_read_version fss_extended_list_read_major_version f_string_ascii_period fss_extended_list_read_minor_version f_string_ascii_period fss_extended_list_read_micro_version fss_extended_list_read_nano_version_prefix fss_extended_list_read_nano_version
#endif // _di_fss_extended_list_read_version_
#ifndef _di_fss_extended_list_read_name_
#define fss_extended_list_write_major_version f_string_ascii_0
#define fss_extended_list_write_minor_version f_string_ascii_5
#define fss_extended_list_write_micro_version f_string_ascii_4
- #define fss_extended_list_write_version fss_extended_list_write_major_version f_string_ascii_period fss_extended_list_write_minor_version f_string_ascii_period fss_extended_list_write_micro_version
+
+ #ifndef fss_extended_list_write_nano_version_prefix
+ #define fss_extended_list_write_nano_version_prefix
+ #endif
+
+ #ifndef fss_extended_list_write_nano_version
+ #define fss_extended_list_write_nano_version
+ #endif
+
+ #define fss_extended_list_write_version fss_extended_list_write_major_version f_string_ascii_period fss_extended_list_write_minor_version f_string_ascii_period fss_extended_list_write_micro_version fss_extended_list_write_nano_version_prefix fss_extended_list_write_nano_version
#endif // _di_fss_extended_list_write_version_
#ifndef _di_fss_extended_list_write_name_
#define fss_extended_read_major_version f_string_ascii_0
#define fss_extended_read_minor_version f_string_ascii_5
#define fss_extended_read_micro_version f_string_ascii_4
- #define fss_extended_read_version fss_extended_read_major_version f_string_ascii_period fss_extended_read_minor_version f_string_ascii_period fss_extended_read_micro_version
+
+ #ifndef fss_extended_read_nano_version_prefix
+ #define fss_extended_read_nano_version_prefix
+ #endif
+
+ #ifndef fss_extended_read_nano_version
+ #define fss_extended_read_nano_version
+ #endif
+
+ #define fss_extended_read_version fss_extended_read_major_version f_string_ascii_period fss_extended_read_minor_version f_string_ascii_period fss_extended_read_micro_version fss_extended_read_nano_version_prefix fss_extended_read_nano_version
#endif // _di_fss_extended_read_version_
#ifndef _di_fss_extended_read_name_
#define fss_extended_write_major_version f_string_ascii_0
#define fss_extended_write_minor_version f_string_ascii_5
#define fss_extended_write_micro_version f_string_ascii_4
- #define fss_extended_write_version fss_extended_write_major_version f_string_ascii_period fss_extended_write_minor_version f_string_ascii_period fss_extended_write_micro_version
+
+ #ifndef fss_extended_write_nano_version_prefix
+ #define fss_extended_write_nano_version_prefix
+ #endif
+
+ #ifndef fss_extended_write_nano_version
+ #define fss_extended_write_nano_version
+ #endif
+
+ #define fss_extended_write_version fss_extended_write_major_version f_string_ascii_period fss_extended_write_minor_version f_string_ascii_period fss_extended_write_micro_version fss_extended_write_nano_version_prefix fss_extended_write_nano_version
#endif // _di_fss_extended_write_version_
#ifndef _di_fss_extended_write_name_
#define fss_identify_major_version f_string_ascii_0
#define fss_identify_minor_version f_string_ascii_5
#define fss_identify_micro_version f_string_ascii_4
- #define fss_identify_version fss_identify_major_version f_string_ascii_period fss_identify_minor_version f_string_ascii_period fss_identify_micro_version
+
+ #ifndef fss_identify_nano_version_prefix
+ #define fss_identify_nano_version_prefix
+ #endif
+
+ #ifndef fss_identify_nano_version
+ #define fss_identify_nano_version
+ #endif
+
+ #define fss_identify_version fss_identify_major_version f_string_ascii_period fss_identify_minor_version f_string_ascii_period fss_identify_micro_version fss_identify_nano_version_prefix fss_identify_nano_version
#endif // _di_fss_identify_version_
#ifndef _di_fss_identify_name_
#define fss_status_code_major_version f_string_ascii_0
#define fss_status_code_minor_version f_string_ascii_5
#define fss_status_code_micro_version f_string_ascii_4
- #define fss_status_code_version fss_status_code_major_version f_string_ascii_period fss_status_code_minor_version f_string_ascii_period fss_status_code_micro_version
+
+ #ifndef fss_status_code_nano_version_prefix
+ #define fss_status_code_nano_version_prefix
+ #endif
+
+ #ifndef fss_status_code_nano_version
+ #define fss_status_code_nano_version
+ #endif
+
+ #define fss_status_code_version fss_status_code_major_version f_string_ascii_period fss_status_code_minor_version f_string_ascii_period fss_status_code_micro_version fss_status_code_nano_version_prefix fss_status_code_nano_version
#endif // _di_fss_status_code_version_
#ifndef _di_fss_status_code_name_
#define iki_read_major_version f_string_ascii_0
#define iki_read_minor_version f_string_ascii_5
#define iki_read_micro_version f_string_ascii_4
- #define iki_read_version iki_read_major_version f_string_ascii_period iki_read_minor_version f_string_ascii_period iki_read_micro_version
+
+ #ifndef iki_read_nano_version_prefix
+ #define iki_read_nano_version_prefix
+ #endif
+
+ #ifndef iki_read_nano_version
+ #define iki_read_nano_version
+ #endif
+
+ #define iki_read_version iki_read_major_version f_string_ascii_period iki_read_minor_version f_string_ascii_period iki_read_micro_version iki_read_nano_version_prefix iki_read_nano_version
#endif // _di_iki_read_version_
#ifndef _di_iki_read_name_
#define iki_write_major_version f_string_ascii_0
#define iki_write_minor_version f_string_ascii_5
#define iki_write_micro_version f_string_ascii_4
- #define iki_write_version iki_write_major_version f_string_ascii_period iki_write_minor_version f_string_ascii_period iki_write_micro_version
+
+ #ifndef iki_write_nano_version_prefix
+ #define iki_write_nano_version_prefix
+ #endif
+
+ #ifndef iki_write_nano_version
+ #define iki_write_nano_version
+ #endif
+
+ #define iki_write_version iki_write_major_version f_string_ascii_period iki_write_minor_version f_string_ascii_period iki_write_micro_version iki_write_nano_version_prefix iki_write_nano_version
#endif // _di_iki_write_version_
#ifndef _di_iki_write_name_
#define status_code_major_version f_string_ascii_0
#define status_code_minor_version f_string_ascii_5
#define status_code_micro_version f_string_ascii_4
- #define status_code_version status_code_major_version f_string_ascii_period status_code_minor_version f_string_ascii_period status_code_micro_version
+
+ #ifndef status_code_nano_version_prefix
+ #define status_code_nano_version_prefix
+ #endif
+
+ #ifndef status_code_nano_version
+ #define status_code_nano_version
+ #endif
+
+ #define status_code_version status_code_major_version f_string_ascii_period status_code_minor_version f_string_ascii_period status_code_micro_version status_code_nano_version_prefix status_code_nano_version
#endif // _di_status_code_version_
#ifndef _di_status_code_name_