all repos — mgba @ 7b66a702cfe96f34ef2842b1c9c6f6826738be5e

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 <mgba/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);