mirror of
https://github.com/PCSX2/pcsx2.git
synced 2025-12-16 04:08:48 +00:00
19 lines
603 B
C++
19 lines
603 B
C++
// SPDX-FileCopyrightText: 2002-2025 PCSX2 Dev Team
|
|
// SPDX-License-Identifier: GPL-3.0+
|
|
|
|
#pragma once
|
|
|
|
#include "Error.h"
|
|
|
|
#include "ryml_std.hpp"
|
|
#include "ryml.hpp"
|
|
#include "ryml.hpp"
|
|
|
|
#include <optional>
|
|
|
|
/// Parse a YAML file with RapidYAML, and use setjmp/longjmp to recover from
|
|
/// parsing errors (as is recommended by the documentation for cases where
|
|
/// exceptions are disabled). The file_name parameter is only used for error
|
|
/// messages, which are returned via the error parameter.
|
|
std::optional<ryml::Tree> ParseYAMLFromString(ryml::csubstr yaml, ryml::csubstr file_name, Error* error);
|