Differences From Artifact [22ddb06ede]:
- File src/OFObject.m — part of check-in [7c7187345a] at 2013-06-18 21:37:58 on branch trunk — Make more use of OF_STRING_ENCODING_NATIVE. (user: js, size: 25949) [annotate] [blame] [check-ins using]
To Artifact [87e58e39d7]:
- File
src/OFObject.m
— part of check-in
[3d16a30f41]
at
2013-06-22 12:12:36
on branch trunk
— Rework exceptions.
This mostly removes the argument for the class in which the exception
occurred. As backtraces were recently added for all platforms, the
passed class does not give any extra information on where the exception
occurred anymore.This also removes a few other arguments which were not too helpful. In
the past, the idea was to pass as many arguments as possible so that it
is easier to find the origin of the exception. However, as backtraces
are a much better way to find the origin, those are not useful anymore
and just make the exception more cumbersome to use. The rule is now to
only pass arguments that might help in recovering from the exception or
provide information that is otherwise not easily accessible. (user: js, size: 25771) [annotate] [blame] [check-ins using]
︙ | |||
125 126 127 128 129 130 131 | 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 | - + - - | abort(); } #endif static void enumeration_mutation_handler(id object) { |
︙ | |||
870 871 872 873 874 875 876 | 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 | - + - - + + - + - - + + - - + + | void *pointer; struct pre_mem *preMem; if OF_UNLIKELY (size == 0) return NULL; if OF_UNLIKELY (size > SIZE_MAX - PRE_IVARS_ALIGN) |
︙ | |||
954 955 956 957 958 959 960 | 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 | - + - - + + | if OF_UNLIKELY (size == 0 || count == 0) { [self freeMemory: pointer]; return NULL; } if OF_UNLIKELY (count > SIZE_MAX / size) |
︙ | |||
993 994 995 996 997 998 999 | 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 | - - + + | - (id)forwardingTargetForSelector: (SEL)selector { return nil; } - (void)doesNotRecognizeSelector: (SEL)selector { |
︙ |