I need to do this:
Code:
#define FUCTION_WRAP(Name, FormatString, args...) \
SCRIPT_DEF(Name) \
{ \
args[0]; \
args[1]; \
args[(n)]; \
if (!PyArg_ParseTuple(PyArgs, FormatString, &args_x[0], &args_x[1], &args_x[(n)])) return NULL; \
Py_BuildValue("i", Name(&args_x[0], &args_x[1], &args_x[(n)]));
} \
Where I call:
Code:
FUCTION_WRAP(glVertex3f, "fff", GLdouble x, GLdouble y, GLdouble z)
And it strips GLdouble from args_x*
How? Is it possible?
Edit: Is it even possible to get a certain argument from __VA_ARGS__, or does it always just copy over everything?