ppapi/generators/idl_thunk.py
def _GetDefaultFailureValue(t):
  """Returns the default failure value for a given type.

  Returns None if no default failure value exists for the type.
  """
  values = {
      'PP_Bool': 'PP_FALSE',
      'PP_Resource': '0',
      'struct PP_Var': 'PP_MakeUndefined()',
      'float': '0.0f',
      'int32_t': 'enter.retval()',
      'uint16_t': '0',
      'uint32_t': '0',
      'uint64_t': '0',
      'void*': 'NULL'
  }
  if t in values:
    return values[t]
  return None
Returns the default failure value for a given type.

  Returns None if no default failure value exists for the type.
  
Returns the default failure value for a given type.
Returns None if no default failure value exists for the type.
Returns the default failure value for a given type . Returns None if no default failure value exists for the type .
def _GetDefaultFailureValue(t):
  values = {
      'PP_Bool': 'PP_FALSE',
      'PP_Resource': '0',
      'struct PP_Var': 'PP_MakeUndefined()',
      'float': '0.0f',
      'int32_t': 'enter.retval()',
      'uint16_t': '0',
      'uint32_t': '0',
      'uint64_t': '0',
      'void*': 'NULL'
  }
  if t in values:
    return values[t]
  return None
def _GetDefaultFailureValue ( t ) : values = { 'PP_Bool' : 'PP_FALSE' , 'PP_Resource' : '0' , 'struct PP_Var' : 'PP_MakeUndefined()' , 'float' : '0.0f' , 'int32_t' : 'enter.retval()' , 'uint16_t' : '0' , 'uint32_t' : '0' , 'uint64_t' : '0' , 'void*' : 'NULL' } if t in values : return values [ t ] return None
Returns the default failure value for a given type.
Returns the default failure value for a given type .
"""Returns the default failure value for a given type.

  Returns None if no default failure value exists for the type.
  """
t