[ox/std] Make mgba logging functions compile on all platforms
This commit is contained in:
parent
8ba461d77c
commit
ddcb53a535
21
deps/ox/src/ox/std/tracehook.cpp
vendored
21
deps/ox/src/ox/std/tracehook.cpp
vendored
@ -1,12 +1,20 @@
|
||||
/*
|
||||
* Copyright 2015 - 2022 gary@drinkingtea.net
|
||||
* Copyright 2015 - 2023 gary@drinkingtea.net
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
#if !defined(OX_USE_STDLIB)
|
||||
#if defined(OX_USE_STDLIB)
|
||||
|
||||
#include <iomanip>
|
||||
#include <iostream>
|
||||
|
||||
static const auto OxPrintTrace = std::getenv("OXTRACE") != nullptr;
|
||||
#endif
|
||||
|
||||
#include "strops.hpp"
|
||||
|
||||
#include "math.hpp"
|
||||
#include "stringview.hpp"
|
||||
@ -49,15 +57,6 @@ void initConsole() {
|
||||
|
||||
}
|
||||
|
||||
#else
|
||||
#include <iomanip>
|
||||
#include <iostream>
|
||||
|
||||
static const auto OxPrintTrace = std::getenv("OXTRACE") != nullptr;
|
||||
#endif
|
||||
|
||||
#include "strops.hpp"
|
||||
|
||||
extern "C" {
|
||||
|
||||
void oxTraceInitHook() {
|
||||
|
Loading…
Reference in New Issue
Block a user