I wonder if it is possible to create a function that takes a type (f. ex. float, some class etc) as an argument. just like sizeof() does (I know it is an operator, but Python function c API PyMem_New does something like that too)
the simpliest (and quite dumb) example of it working would be:
size_t f(type)
{
return sizeof(type);
}
of course i need it for something different.
Thanks in advance and regards
Misery