diff --git a/Handle/BNArchitecture.cs b/Handle/BNArchitecture.cs
index a2edd16..cd3dcbd 100644
--- a/Handle/BNArchitecture.cs
+++ b/Handle/BNArchitecture.cs
@@ -1080,6 +1080,22 @@ LowLevelILFunction il
);
}
+ ///
+ /// Registers a new calling convention with this architecture, mirroring Python
+ /// Architecture.register_calling_convention (architecture.py:2593). A calling
+ /// convention must be registered here before it can be assigned as the
+ /// default/cdecl/stdcall/fastcall convention. Intended for custom-architecture plugin
+ /// authors.
+ ///
+ /// The CallingConvention to register.
+ public void RegisterCallingConvention(CallingConvention callingConvention)
+ {
+ NativeMethods.BNRegisterCallingConvention(
+ this.handle ,
+ callingConvention.DangerousGetHandle()
+ );
+ }
+
///
/// Gets the cdecl calling convention for this architecture.
///