/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-*/ /* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththisfile,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
// llama.cpp uses a single dynamic_cast in a deprecated code path, not used in // Firefox. #definedynamic_cast reinterpret_cast
// Inline function to replace throw. We can't use a regular define because some // compilers warn about unreachable code (e.g. the ctor call).
[[noreturn]] inlinevoid abort_with_suppression() {
std::abort();
}
#definethrow abort_with_suppression(); if (false)
// Replace try blocks by ifs #define try if (true)
// This works because llama.cpp more or less consistently uses `e`, `err` and // `error` for the exception variable name, but might need adjustments. #definecatch(x) \ if (const std::exception &e = std::exception(), err = std::exception(), \
error = std::exception(); \ false)
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.