Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions Handle/BNArchitecture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1080,6 +1080,22 @@ LowLevelILFunction il
);
}

/// <summary>
/// Registers a new calling convention with this architecture, mirroring Python
/// <c>Architecture.register_calling_convention</c> (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.
/// </summary>
/// <param name="callingConvention">The CallingConvention to register.</param>
public void RegisterCallingConvention(CallingConvention callingConvention)
{
NativeMethods.BNRegisterCallingConvention(
this.handle ,
callingConvention.DangerousGetHandle()
);
}

/// <summary>
/// Gets the cdecl calling convention for this architecture.
/// </summary>
Expand Down
Loading