MCPcopy Create free account
hub / github.com/crosire/reshade / add_error

Method add_error

source/imgui_code_editor.hpp:174–174  ·  view source on GitHub ↗

Adds an error to be displayed at the specified . Line that should be highlighted and show an error message when hovered with the mouse. Error message that should be displayed. Set to to indicate that this is a warning instead of an error, which uses diff

Source from the content-addressed store, hash-verified

172 /// <param name="message">Error message that should be displayed.</param>
173 /// <param name="warning">Set to <see langword="true"/> to indicate that this is a warning instead of an error, which uses different color coding.</param>
174 void add_error(size_t line, const std::string_view message, bool warning = false) { _errors.emplace(line, std::make_pair(message, warning)); }
175 /// <summary>
176 /// Removes all displayed errors that were previously added via <see cref="add_error"/>.
177 /// </summary>

Callers 1

open_code_editorMethod · 0.80

Calls 1

emplaceMethod · 0.80

Tested by

no test coverage detected