Default calling convention. .. note:: Make sure the calling convention has been registered with `Architecture.register_calling_convention`. :getter: returns a CallingConvention object for the default calling convention, if one exists. :setter: sets the default calling convention :type:
(self)
| 1997 | |
| 1998 | @property |
| 1999 | def default_calling_convention(self): |
| 2000 | """ |
| 2001 | Default calling convention. |
| 2002 | |
| 2003 | .. note:: Make sure the calling convention has been registered with `Architecture.register_calling_convention`. |
| 2004 | |
| 2005 | :getter: returns a CallingConvention object for the default calling convention, if one exists. |
| 2006 | :setter: sets the default calling convention |
| 2007 | :type: Optional['callingconvention.CallingConvention'] |
| 2008 | """ |
| 2009 | cc_handle = core.BNGetArchitectureDefaultCallingConvention(self.handle) |
| 2010 | if cc_handle is None: |
| 2011 | return None |
| 2012 | return callingconvention.CallingConvention(handle=cc_handle) |
| 2013 | |
| 2014 | @default_calling_convention.setter |
| 2015 | def default_calling_convention(self, cc: 'callingconvention.CallingConvention'): |
nothing calls this directly
no test coverage detected