Skip to content

Commit

Permalink
Added a version number to the source
Browse files Browse the repository at this point in the history
  • Loading branch information
Unreal-Dan committed Aug 10, 2024
1 parent 3d81631 commit 68a0d8a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Helios/Helios.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ bool Helios::keepgoing;
bool Helios::sleeping;
#endif

#define HELIOS_VERSION 1.1.125
#define HELIOS_VERSION_STR STR(HELIOS_VERSION)
#define _STR(x) #x
#define STR(x) _STR(x)

volatile char helios_version[] = HELIOS_VERSION_STR;

bool Helios::init()
{
// first initialize all the components of helios
Expand Down
17 changes: 17 additions & 0 deletions Helios/HeliosConfig.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@
#ifndef HELIOS_CONFIG_H
#define HELIOS_CONFIG_H

// Helper macros to expand out the version into a string
#define _STR(x) #x
#define STR(x) _STR(x)

// Helios Version Number
//
// It is expected that HELIOS_VERSION will be provided on the command line to the
// compiler as a -DHELIOS_VERSION=a.b.c but if it's not it will default here
#ifndef HELIOS_VERSION
#define HELIOS_VERSION 0.0.1
#endif

// Helios Version String
//
// This is the string literal equivalent of HELIOS_VERSION above
#define HELIOS_VERSION_STR STR(HELIOS_VERSION)

// Short Click Threshold
//
// The length of time in milliseconds for a click to
Expand Down

0 comments on commit 68a0d8a

Please sign in to comment.