print_string.cpp
imports core/os/os.hNative command result field
SHA-256874b5a95f5773a79e0ef0ca19eccb15284b8594bee29be8b1fb28d71f74c22a6
MaleculeH(Db)Md(In)
Evidence
3:57… *******************/
4/* This file is part of: */
5/* GODOT ENGINE …
11:51… o any person obtaining */
12/* a copy of this software and associated documentation files (the */
13/* "Software"), to deal in the Software without restriction, including */
14/* witho …
23:58… ARRANTIES OF */
24/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */
25/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLD …
29:30… **********************************************/
30
31#include "print_string.h"
32
33#include "core/core_globals.h"
34#include "core/os/os.h"
35
36#include <cstdio>
37
38static PrintHandlerList *print_handler_list = nullptr;
39static thread_local bool is_printing = false;
40
41sta …
41:21… fallback(const String &p_string, bool p_err) {
42 fprintf(p_err ? stderr : stdout, "While attempting to print a message, another message was printed:\n%s\n", p_string.utf8().get_data());
43}
44
45void add_pri …