PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
mod.h
1/*
2# _____ ___ ____ ___ ____
3# ____| | ____| | | |____|
4# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5#-----------------------------------------------------------------------
6# Copyright 2005, James Lee (jbit<at>jbit<dot>net)
7# Licenced under Academic Free License version 2.0
8# Review ps2sdk README & LICENSE files for further details.
9*/
10
11#ifndef __PS2SND_MOD_H
12#define __PS2SND_MOD_H 1
13
14#define MODNAME "ps2snd"
15#define BANNER MODNAME " %d.%d\n"
16#define VER_MAJOR 0
17#define VER_MINOR 1
18
19#define OUT_ERROR 0
20#define OUT_WARNING 1
21#define OUT_INFO 2
22#define OUT_DEBUG 3
23
24extern int debug_level;
25
26#define ALIGNED(x) __attribute__((aligned((x))))
27
28
29#define dprintf(level, format, args...) \
30do \
31{ \
32 if (level<=debug_level) \
33 printf(MODNAME "(%s): " format, __FUNCTION__, ## args); \
34} while(0)
35
36#endif /* __PS2SND_MOD_H */
37