Function .end #2189
-
The class function has a |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
End as a concept doesn't really make sense in the way Binary Ninja defines a Function (a collection of connected BasicBlock objects). Consider the following code. b: In the above function there is no clear "end" of the function. We feel that if we created such an API it would be error prone as people have different ideas on how the function "end" should be calculated. |
Beta Was this translation helpful? Give feedback.
End as a concept doesn't really make sense in the way Binary Ninja defines a Function (a collection of connected BasicBlock objects). Consider the following code.
sub_0:
call sub_2
ret
b:
ret
sub_2:
jmp b
In the above function there is no clear "end" of the function. We feel that if we created such an API it would be error prone as people have different ideas on how the function "end" should be calculated.