void _NPN_SetExceptionWithUTF8 (NPObject *obj, const NPUTF8 *message, int32_t length)
{
    assert (obj);
    assert (message);
 
    if (obj && message) {
        _NPN_SetException (obj, message);
    }
}
void _NPN_SetExceptionWithUTF8 (NPObject *obj, const NPUTF8 *message, int32_t length)
{
    assert (obj);
    assert (message);
 
    if (obj && message) {
        NPString string;
        string.UTF8Characters = message;
        string.UTF8Length = length;
        _NPN_SetException (obj, &string);
    }
}
示例#3
0
void WebBindings::setException(NPObject* object, const NPUTF8* message)
{
    _NPN_SetException(object, message);
}
示例#4
0
void NPN_SetException(NPObject *obj, const NPUTF8 *message) {
  _NPN_SetException(obj, message);
}