ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/compiler.h
(Generate patch)

Comparing deliantra/server/include/compiler.h (file contents):
Revision 1.6 by root, Fri Mar 26 01:04:44 2010 UTC vs.
Revision 1.10 by root, Sat Apr 23 04:56:48 2011 UTC

1/* 1/*
2 * This file is part of Deliantra, the Roguelike Realtime MMORPG. 2 * This file is part of Deliantra, the Roguelike Realtime MMORPG.
3 * 3 *
4 * Copyright (©) 2009,2010 Marc Alexander Lehmann / Robin Redeker / the Deliantra team 4 * Copyright (©) 2009,2010,2011 Marc Alexander Lehmann / Robin Redeker / the Deliantra team
5 * 5 *
6 * Deliantra is free software: you can redistribute it and/or modify it under 6 * Deliantra is free software: you can redistribute it and/or modify it under
7 * the terms of the Affero GNU General Public License as published by the 7 * the terms of the Affero GNU General Public License as published by the
8 * Free Software Foundation, either version 3 of the License, or (at your 8 * Free Software Foundation, either version 3 of the License, or (at your
9 * option) any later version. 9 * option) any later version.
61// is mostly true or mosty false. note that these return 61// is mostly true or mosty false. note that these return
62// booleans, not the expression. 62// booleans, not the expression.
63#define expect_false(expr) expect ((expr) ? 1 : 0, 0) 63#define expect_false(expr) expect ((expr) ? 1 : 0, 0)
64#define expect_true(expr) expect ((expr) ? 1 : 0, 1) 64#define expect_true(expr) expect ((expr) ? 1 : 0, 1)
65 65
66// try to tell the compiler tat some condition is definitely true 66// try to tell the compiler that some condition is definitely true
67#define assume(cond) do { if (!(cond)) unreachable (); } while (0) 67#define assume(cond) do { if (!(cond)) unreachable (); } while (0)
68 68
69#endif 69#endif
70 70

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines