libtrbase
1.0.2
Web server and task management solution.
|
Go to the source code of this file.
Macros | |
#define | Bool char |
#define | TRUE 1 |
#define | FALSE 0 |
#define | MAX(a, b) ((a)>(b)? (a) : (b)) |
#define | MIN(a, b) ((a)<(b)? (a) : (b)) |
#define | SWAP_XOR(a, b) ((a)^=(b),(b)^=(a),(a)^=(b)) |
#define | SWAP(type, a, b) |
#define | CSTRA(val) val, sizeof(val)-1 |
Const STRing Argument. More... | |
Common reusable definitions.
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, either version 3 of the License, or (at your option) any later version.
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, see http://www.gnu.org/licenses/.
Definition in file commons.h.
#define CSTRA | ( | val | ) | val, sizeof(val)-1 |
#define SWAP | ( | type, | |
a, | |||
b | |||
) |
#define SWAP_XOR | ( | a, | |
b | |||
) | ((a)^=(b),(b)^=(a),(a)^=(b)) |
XOR variant of swapping a variable
Definition at line 52 of file commons.h.
Referenced by TR_euklidGcd().