{{+bindTo:partials.standard_nacl_article}}
OutException (Var *v) | |
~OutException () | |
PP_Var * | get () |
This class is used when calling the raw C PPAPI when using the C++ Var
as a possible NULL exception.
This class will handle getting the address of the internal value out if it's non-NULL and fixing up the reference count.
Warning: this will only work for things with exception semantics, i.e. that the value will not be changed if it's a non-undefined exception. Otherwise, this class will mess up the refcounting.
This is a bit subtle:
Example: void FooBar(a, b, Var* exception = NULL) { foo_interface->Bar(a, b, Var::OutException(exception).get()); }
pp::Var::OutException::OutException | ( | Var * | v | ) | [inline] |
A constructor.
pp::Var::OutException::~OutException | ( | ) | [inline] |
Destructor.
PP_Var* pp::Var::OutException::get | ( | ) | [inline] |