diff options
Diffstat (limited to 'python/variable.py')
| -rw-r--r-- | python/variable.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/python/variable.py b/python/variable.py index 1ea4728e..ee96cb46 100644 --- a/python/variable.py +++ b/python/variable.py @@ -834,6 +834,11 @@ class Variable(CoreVariable): core.BNSetFunctionVariableDeadStoreElimination(self._function.handle, self.to_BNVariable(), value) @property + def is_parameter_variable(self) -> bool: + """returns whether this variable is a function parameter""" + return self in self._function.parameter_vars + + @property def offset_to_next_variable(self) -> Optional[int]: """returns number of bytes to the next variable on the stack""" if self.source_type != VariableSourceType.StackVariableSourceType: |
