mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-12-05 03:55:39 +00:00
44 lines
2.1 KiB
HLSL
44 lines
2.1 KiB
HLSL
|
#ifndef _VERSION_NUMBER_H
|
||
|
#define _VERSION_NUMBER_H
|
||
|
|
||
|
///////////////////////////////// MIT LICENSE ////////////////////////////////
|
||
|
|
||
|
// Copyright (C) 2022 Alex Gunter
|
||
|
//
|
||
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||
|
// of this software and associated documentation files (the "Software"), to
|
||
|
// deal in the Software without restriction, including without limitation the
|
||
|
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
||
|
// sell copies of the Software, and to permit persons to whom the Software is
|
||
|
// furnished to do so, subject to the following conditions:
|
||
|
//
|
||
|
// The above copyright notice and this permission notice shall be included in
|
||
|
// all copies or substantial portions of the Software.
|
||
|
//
|
||
|
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||
|
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||
|
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||
|
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||
|
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||
|
// IN THE SOFTWARE.
|
||
|
|
||
|
|
||
|
#define MAJOR_VERSION 2
|
||
|
#define MINOR_VERSION 1
|
||
|
#define PATCH_VERSION 0
|
||
|
|
||
|
// Yes, both sibling preprocessor functions are necessary.
|
||
|
// Don't "simplify" this, or the substitution won't work.
|
||
|
#define BUILD_DOT_VERSION_(mav, miv, pav) #mav "." #miv "." #pav
|
||
|
#define BUILD_DOT_VERSION(mav, miv, pav) BUILD_DOT_VERSION_(mav, miv, pav)
|
||
|
#define DOT_VERSION_STR BUILD_DOT_VERSION(MAJOR_VERSION, MINOR_VERSION, PATCH_VERSION)
|
||
|
|
||
|
// Again, yes, both sibling preprocessor functions are necessary.
|
||
|
// Don't "simplify" this, or the substitution won't work.
|
||
|
#define BUILD_UNDERSCORE_VERSION_(prefix, mav, miv, pav) prefix ## _ ## mav ## _ ## miv ## _ ## pav
|
||
|
#define BUILD_UNDERSCORE_VERSION(p, mav, miv, pav) BUILD_UNDERSCORE_VERSION_(p, mav, miv, pav)
|
||
|
#define APPEND_VERSION_SUFFIX(prefix) BUILD_UNDERSCORE_VERSION(prefix, MAJOR_VERSION, MINOR_VERSION, PATCH_VERSION)
|
||
|
|
||
|
|
||
|
#endif // _VERSION_NUMBER_H
|