LMMS
Loading...
Searching...
No Matches
version.cpp
Go to the documentation of this file.
1/*
2 ZynAddSubFX - a software synthesizer
3
4 version.cpp - implementation of version_type class
5 Copyright (C) 2016 Johannes Lorenz
6 Author: Johannes Lorenz
7
8 This program is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public License
10 as published by the Free Software Foundation; either version 2
11 of the License, or (at your option) any later version.
12*/
13
14#include <iostream>
15
16#include "zyn-version.h"
17
18namespace zyncarla {
19
20std::ostream& operator<< (std::ostream& os,
21 const version_type& v)
22{
23 return os << v.get_major() << '.'
24 << v.get_minor() << '.'
25 << v.get_revision();
26}
27
28static_assert(!(version_type(3,1,1) < version_type(1,3,3)),
29 "version operator failed");
30static_assert(version_type(2,9,9) < version_type(3,4,3),
31 "version operator failed");
32static_assert(!(version_type(2,4,3) < version_type(2,4,3)),
33 "version operator failed");
34
35}
36
class containing a zynaddsubfx version
Definition zyn-version.h:24
constexpr version_type(char maj, char min, char rev)
Definition zyn-version.h:38
unsigned v[N_MAX]
Definition inflate.c:1584
Definition zynaddsubfx-src.cpp:569
ostream & operator<<(ostream &out, const MidiEvent &ev)
Definition InMgr.cpp:26
static ZCONST char Far * os[NUM_HOSTS]
Definition zipinfo.c:1001