I try to use Isolator++ to fake global function like online document
typedef enum {
good,
great
} MyEnum;
void gfunc(MyEnum myenum, int test) {...}
FAKE_GLOBAL(gfunc);
WHEN_CALLED(gfunc(_, _)).DoStaticOrGlobalInstead(gfunc2, NULL);
But when compiling, it shows that "cannot convert parameter 1 from 'int' to 'MyEnum'".
doesn't '_' mean anything (any type argument) ?
Is this a bug ? And how could I avoid this issue ?
I also try other usage, ex: WHEN_CALLED(gfunc(static_cast<MyEnum>(_), _))
but it lead to exception in Isolator++ when executing
Thank you.