macros.h File Reference
usefull Scol macros
More...
Go to the source code of this file.
Defines |
#define | SAFEdelete(p) { if (p) { free (p); (p) = NULL; } } |
#define | _SEPTRBIT 0x00000001 |
#define | SEW2I(w) ((w)>>1) |
#define | SEW2P(w) ((w)>>1) |
#define | SEI2W(n) ((n)<<1) |
#define | SEP2W(p) ((p)<<1 | _SEPTRBIT) |
#define | MTOI(mot) ((mot)>>1) |
#define | MTOP(mot) ((mot)>>1) |
#define | ITOM(mot) ((mot)<<1) |
#define | PTOM(mot) (((mot)<<1)+1) |
#define | INVERT(m, a, b) {tmp_res=MMget(m,a);MMset(m,a,MMget(m,b));MMset(m,b,tmp_res);} |
#define | SEDROP(m, n) ((m)->pp += (n)) |
#define | SEPUSHSTR(m, s) (Mpushstrbloc((m), (s))) |
#define | CHECK(m) if ((tmp_res=m)) return tmp_res |
#define | SCOLUTF8(string, len) g_locale_to_utf8 (string, len, NULL, NULL, NULL) |
#define | UTF8SCOL(string, len) g_locale_from_utf8 (string, len, NULL, NULL, NULL) |
#define | SIZEINT(x) floor (log10 (x)) + 1 |
#define | FSET(val, f) |
#define | FGET(val) (*(float*)&(val)) |
Detailed Description
usefull Scol macros
- Author:
- Sylvain HUET, Stephane Bisaro
Define Documentation
Value:{ \
float g = (f); \
(val) = (*(int*)&g) & 0xfffffffe; \
}