From: | "Michael Sterrett (mr_bones_)" <mr_bones_@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in games-arcade/supertux/files: supertux-0.1.3-ndebug.patch |
Date: | Tue, 26 Feb 2008 22:27:44 |
Message-Id: | E1JU8Gz-0004vY-Ri@stork.gentoo.org |
1 | mr_bones_ 08/02/26 22:27:41 |
2 | |
3 | Added: supertux-0.1.3-ndebug.patch |
4 | Log: |
5 | ndebug patch from Guenther Brunthaler via bug #211322 |
6 | (Portage version: 2.1.4.4) |
7 | |
8 | Revision Changes Path |
9 | 1.1 games-arcade/supertux/files/supertux-0.1.3-ndebug.patch |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-arcade/supertux/files/supertux-0.1.3-ndebug.patch?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-arcade/supertux/files/supertux-0.1.3-ndebug.patch?rev=1.1&content-type=text/plain |
13 | |
14 | Index: supertux-0.1.3-ndebug.patch |
15 | =================================================================== |
16 | Index: supertux-0.1.3/src/tile.cpp |
17 | =================================================================== |
18 | --- supertux-0.1.3.orig/src/tile.cpp |
19 | +++ supertux-0.1.3/src/tile.cpp |
20 | @@ -99,7 +99,11 @@ void TileManager::load_tileset(std::stri |
21 | tile->anim_speed = 25; |
22 | |
23 | LispReader reader(lisp_cdr(element)); |
24 | + #ifdef NDEBUG |
25 | + void(reader.read_int("id", &tile->id)); |
26 | + #else |
27 | assert(reader.read_int("id", &tile->id)); |
28 | + #endif |
29 | reader.read_bool("solid", &tile->solid); |
30 | reader.read_bool("brick", &tile->brick); |
31 | reader.read_bool("ice", &tile->ice); |
32 | |
33 | |
34 | |
35 | -- |
36 | gentoo-commits@l.g.o mailing list |