mirror of https://github.com/svaarala/duktape.git
Sami Vaarala
9 years ago
2 changed files with 9 additions and 0 deletions
@ -0,0 +1,5 @@ |
|||
/* Convert any input pointer into a "void *", losing a const qualifier.
|
|||
* This is not fully portable because casting through duk_uintptr_t may |
|||
* not work on all architectures (e.g. those with long, segmented pointers). |
|||
*/ |
|||
#define DUK_LOSE_CONST(src) ((void *) (duk_uintptr_t) (src)) |
Loading…
Reference in new issue