diff options
| author | Jordan Wiens <jordan@psifertex.com> | 2019-05-15 15:17:57 -0700 |
|---|---|---|
| committer | Jordan Wiens <jordan@psifertex.com> | 2019-05-15 15:17:57 -0700 |
| commit | 13a793f7ad19f43ff97c058becb76182b0159452 (patch) | |
| tree | e677419e13f654f337002d5950193a9abbf90a99 /python/callingconvention.py | |
| parent | 392672b07f971cebe3da5de20a24fd8d425c1061 (diff) | |
first half of the refactor adding getters and setters for init created properties
Diffstat (limited to 'python/callingconvention.py')
| -rw-r--r-- | python/callingconvention.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/python/callingconvention.py b/python/callingconvention.py index ee42caca..92aa30f2 100644 --- a/python/callingconvention.py +++ b/python/callingconvention.py @@ -53,7 +53,7 @@ class CallingConvention(object): if arch is None or name is None: self.handle = None raise ValueError("Must specify either handle or architecture and name") - self.arch = arch + self._arch = arch self._pending_reg_lists = {} self._cb = core.BNCustomCallingConvention() self._cb.context = 0 @@ -443,3 +443,12 @@ class CallingConvention(object): func_obj = func.handle out_var = core.BNGetParameterVariableForIncomingVariable(self.handle, in_buf, func_obj) return binaryninja.function.Variable(func, out_var.type, out_var.index, out_var.storage) + + @property + def arch(self): + """ """ + return self._arch + + @arch.setter + def arch(self, value): + self._arch = value |
