ocarina/include/core/version.h
Anna Schumaker 427319b72e core/file: Move OCARINA_NAME configuration into version.h
I'm going to use this for saving album art to the right place.  I moved
it into an include file to avoid duplicating code.

Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
2016-06-24 10:50:37 -04:00

25 lines
480 B
C

/*
* Copyright 2013 (c) Anna Schumaker.
*/
#ifndef OCARINA_CORE_VERSION_H
#define OCARINA_CORE_VERSION_H
#ifdef CONFIG_TESTING
#define OCARINA_NAME "ocarina-test"
#elif CONFIG_DEBUG
#define OCARINA_NAME "ocarina-debug"
#else
#define OCARINA_NAME "ocarina"
#endif
/*
* Scons sets the current version by passing the
* -DCONFIG_VERSION macro when Ocarina is compiled.
*/
static inline const char *get_version()
{
return CONFIG_VERSION;
}
#endif /* OCARINA_CORE_VERSION_H */