qpcpp/ports/win32-qutest/qep_port.hpp
2022-10-26 19:47:39 -04:00

53 lines
1.8 KiB
C++

//============================================================================
// Copyright (C) 2005 Quantum Leaps, LLC <state-machine.com>.
//
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-QL-commercial
//
// This software is dual-licensed under the terms of the open source GNU
// General Public License version 3 (or any later version), or alternatively,
// under the terms of one of the closed source Quantum Leaps commercial
// licenses.
//
// The terms of the open source GNU General Public License version 3
// can be found at: <www.gnu.org/licenses/gpl-3.0>
//
// The terms of the closed source Quantum Leaps commercial licenses
// can be found at: <www.state-machine.com/licensing>
//
// Redistributions in source code must retain this top-level comment block.
// Plagiarizing this software to sidestep the license obligations is illegal.
//
// Contact information:
// <www.state-machine.com/licensing>
// <info@state-machine.com>
//============================================================================
//! @date Last updated on: 2022-06-30
//! @version Last updated for: @ref qpcpp_7_0_1
//!
//! @file
//! @brief QEP/C++ port for QUTEST Windows/Linux/macOS, GNU or Visual C++
#ifndef QEP_PORT_HPP
#define QEP_PORT_HPP
#ifdef __GNUC__
//! no-return function specifier (GCC compiler)
#define Q_NORETURN __attribute__ ((noreturn)) void
#elif (defined _MSC_VER) && (defined __cplusplus)
//! no-return function specifier (Microsoft Visual Studio compiler) */
#define Q_NORETURN [[ noreturn ]] void
#endif
// un-comment to provide QEvt constructor/destructor
//#define Q_EVT_CTOR 1
//#define Q_EVT_XTOR 1
#include <cstdint> // Exact-width types. C++11 Standard
#include "qep.hpp" // QEP platform-independent public interface
#endif // QEP_PORT_HPP