One function, mutiple types of parameters?

   2290   0   0
User Avatar
Member
398 posts
Joined: July 2005
Offline
Hi!
I want to create dso for custom VEX function, say for the addition of two numbers of various types
Add(number1, number2)

I can create a callback like that
static void
Add(int, void *argv, void *)
{
// Some code
}

And I think what I can register this function two or more times with different signatures like
new VEX_VexOp(“Add@&III”, Add); // for integer numbers
new VEX_VexOp(“Add@&FFF”, Add); // for float numbers


How I can know, what type the input parameters?
f = conserve . diffuse . advect . add

fx td @ the mill
  • Quick Links