diff options
| author | Peter LaFosse <peter@vector35.com> | 2017-07-17 14:01:48 -0400 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2017-07-17 14:01:48 -0400 |
| commit | b7c5486f26386c7c165b9b05cc2d6800db082b6f (patch) | |
| tree | 6c422627c9eae445e4d218dcce5e98c998670f8a /python/callingconvention.py | |
| parent | cc3755bd0e3aa8d9706442a867b9f8713f7f32a8 (diff) | |
Fix referenced to old calling convention api, Fixes #739
Diffstat (limited to 'python/callingconvention.py')
| -rw-r--r-- | python/callingconvention.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/python/callingconvention.py b/python/callingconvention.py index e029a6aa..e9825642 100644 --- a/python/callingconvention.py +++ b/python/callingconvention.py @@ -40,8 +40,10 @@ class CallingConvention(object): _registered_calling_conventions = [] - def __init__(self, arch, name, handle = None): + def __init__(self, arch=None, name=None, handle=None): if handle is None: + if arch is None or name is None: + raise ValueError("Must specify either handle or architecture and name") self.arch = arch self._pending_reg_lists = {} self._cb = core.BNCustomCallingConvention() |
