Exemple #1
0
def ensure_value_class(value, class_name, module, library):
    wrappersym = dylan_object_wrapper_symbol_name(value)
    wrapper_symbol_name = mangling.dylan_mangle_wrapper(
        class_name, module, library)
    if wrappersym != wrapper_symbol_name:
        raise Exception("%#x is not a %s (%s != %s)" %
                        (int(value.address_of.GetValueAsUnsigned()),
                         class_name, wrappersym, wrapper_symbol_name))
def check_value_class(value, class_name, module, library):
  actual_wrapper_name = dylan_object_wrapper_symbol_name(value)
  desired_wrapper_name = mangling.dylan_mangle_wrapper(class_name, module, library)
  return actual_wrapper_name == desired_wrapper_name
def ensure_value_class(value, class_name, module, library):
  wrappersym = dylan_object_wrapper_symbol_name(value)
  wrapper_symbol_name = mangling.dylan_mangle_wrapper(class_name, module, library)
  if wrappersym != wrapper_symbol_name:
    raise Exception("%#x is not a %s (%s != %s)" % (int(value.address_of.GetValueAsUnsigned()), class_name, wrappersym, wrapper_symbol_name))
Exemple #4
0
def check_value_class(value, class_name, module, library):
    actual_wrapper_name = dylan_object_wrapper_symbol_name(value)
    desired_wrapper_name = mangling.dylan_mangle_wrapper(
        class_name, module, library)
    return actual_wrapper_name == desired_wrapper_name