This commit is contained in:
jkriege2 2024-01-22 18:20:35 +01:00
parent 9d2f5bb579
commit adf230fcf1
5 changed files with 28 additions and 2 deletions

View File

@ -48,7 +48,8 @@ isEmpty(JKQTP_COMMON_PRI_INCLUDED) {
$$PWD/jkqtcommon/jkqtpicons.cpp \
$$PWD/jkqtcommon/jkqtpcsstools.cpp \
$$PWD/jkqtcommon/jkqtpcachingtools.cpp \
$$PWD/jkqtcommon/jkqtpconcurrencytools.cpp
$$PWD/jkqtcommon/jkqtpconcurrencytools.cpp \
$$PWD/jkqtcommon/jkqtpexpected.cpp
INCLUDEPATH += $$PWD

View File

@ -30,6 +30,7 @@ target_sources(${lib_name} PRIVATE
jkqttools.cpp
jkqtpicons.cpp
jkqtpcsstools.cpp
jkqtpexpected.cpp
)
# ... and add headers
target_sources(${lib_name} PUBLIC FILE_SET HEADERS TYPE HEADERS

View File

@ -23,6 +23,8 @@
#include "jkqtcommon/jkqtpcodestructuring.h"
#include <exception>
#include <QMetaEnum>
#include <QSet>
#include <QVector>
JKQTPCSSParser::RawErrorTag_t JKQTPCSSParser::RawErrorTag={};

View File

@ -0,0 +1,22 @@
/*
Copyright (c) 2008-2022 Jan W. Krieger (<jan@jkrieger.de>)
last modification: $LastChangedDate$ (revision $Rev$)
This software is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License (LGPL) as published by
the Free Software Foundation, either version 2.1 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License (LGPL) for more details.
You should have received a copy of the GNU Lesser General Public License (LGPL)
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "jkqtpexpected.h"

View File

@ -35,7 +35,7 @@ struct JKQTPExpectedUnexpectedType {};
*
* \see JKQTPExpected, JKQTPExpectedUnexpectedType
*/
inline constexpr JKQTPExpectedUnexpectedType JKQTPUnexpected {};
#define JKQTPUnexpected JKQTPExpectedUnexpectedType()
/** \brief an "expected" datatype, which can either represent a function result of type \c T or an error of type \c E
* \ingroup jkqtptools_general