all repos — mgba @ 25b4faef1262e37154e955d21d0fe1befa07e23b

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
15PYEXPORT void _pyLog(void* logger, int category, enum mLogLevel level, const char* message);