all repos — mgba @ 1dff579ad4a6e5ccb1152b8cddd74975b970b0b3

mGBA Game Boy Advance Emulator

src/platform/python/log.h (view raw)

 1/* Copyright (c) 2013-2016 Jeffrey Pfau
 2 *
 3 * This Source Code Form is subject to the terms of the Mozilla Public
 4 * License, v. 2.0. If a copy of the MPL was not distributed with this
 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 6#include "core/log.h"
 7
 8struct mLoggerPy {
 9    struct mLogger d;
10    void* pyobj;
11};
12
13struct mLogger* mLoggerPythonCreate(void* pyobj);
14
15extern "Python+C" void _pyLog(void* logger, int category, enum mLogLevel level, const char* message);