Colobot
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Pages
src
sound
oalsound
check.h
1
// * This file is part of the COLOBOT source code
2
// * Copyright (C) 2012, Polish Portal of Colobot (PPC)
3
// *
4
// * This program is free software: you can redistribute it and/or modify
5
// * it under the terms of the GNU General Public License as published by
6
// * the Free Software Foundation, either version 3 of the License, or
7
// * (at your option) any later version.
8
// *
9
// * This program is distributed in the hope that it will be useful,
10
// * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
// * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
// * GNU General Public License for more details.
13
// *
14
// * You should have received a copy of the GNU General Public License
15
// * along with this program. If not, see http://www.gnu.org/licenses/.
16
17
// check.h
18
19
#pragma once
20
21
#include "
common/logger.h
"
22
23
#include <al.h>
24
#include <alc.h>
25
26
static
ALenum CODE = AL_NO_ERROR;
27
28
inline
bool
alCheck()
29
{
30
CODE = alGetError();
31
return
CODE != AL_NO_ERROR;
32
}
33
34
inline
ALenum alGetCode()
35
{
36
ALenum ret = CODE;
37
CODE = AL_NO_ERROR;
38
return
ret;
39
}
40
logger.h
Class for logging information to file or console.
Generated on Wed Jul 2 2014 17:12:52 for Colobot by
1.8.7