Further fixes for unions

This commit is contained in:
Ben Turner
2009-09-14 19:26:17 -07:00
parent 100dad33b8
commit 63146a834d
4 changed files with 36 additions and 53 deletions

View File

@@ -202,9 +202,10 @@ PluginModuleParent::NPP_New(NPMIMEType pluginType,
// FIXME/bent: demo purposes only
Variant v1(0);
Variant v2(parentInstance);
Variant retval;
printf("\n[PluginModuleParent] sending Test msg\n\n");
parentInstance->SendTest(v1, v2);
parentInstance->CallTest(v1, v2, &retval);
NS_ASSERTION(retval.type() == v1.type() && retval.get_int() == v1.get_int(), "Bad!");
if (NPERR_NO_ERROR != prv)