![]() |
SpaceBubble
v0.98
|
Wii trace module. More...
#include <stdio.h>
#include <gccore.h>
#include <ogcsys.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <stdarg.h>
#include <time.h>
#include "trace.h"
Macros | |
#define | MAX_BUFFER_SIZE 8192 |
Functions | |
int | traceOpen (char *filename) |
int | traceClose () |
char * | getDate () |
int | traceEvent (char *functionName, int threadNr, char *event,...) |
int | traceEventRaw (char character) |
Variables | |
bool | traceOn = false |
FILE * | fp = NULL |
Wii trace module.
Copyright (C) 2008-2010 PlaatSoft
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#define MAX_BUFFER_SIZE 8192 |
char* getDate | ( | ) |
Create trace timestamp
int traceClose | ( | ) |
Close trace file
int traceEvent | ( | char * | functionName, |
int | threadNr, | ||
char * | event, | ||
... | |||
) |
Save trace event in trace file
functionName | The functionName |
threadNr | The thread number [0=main thread, 1=network thread] |
event | The event discription |
... | Optional parameters. |
int traceEventRaw | ( | char | character | ) |
Save trace event in trace file.
character | The character range between 0...255 |
int traceOpen | ( | char * | filename | ) |
Create trace file
filename | The filename of the trace file |
FILE* fp = NULL |
bool traceOn = false |