Pepper_31_C++_interfaces
|
#include <var.h>
Public Member Functions | |
OutException (Var *v) | |
A constructor. More... | |
~OutException () | |
Destructor. More... | |
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()); }
|
inline |
|
inline |