You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The IPC platform definitions in source/platform are super useful, but they were implemented at a time were C++ metaprogramming was highly limiting. With C++20, a much simpler and faster-to-compile syntax could be adopted. Furthermore, per-parameter description texts could be added (for integration in debug traces).
I'm thinking of something like this:
// Previously:
// using DeleteDirectory = IPC::IPCCommand<0x806>::add_uint32::add_uint64::add_uint32::add_uint32::add_static_buffer::response;
// New:
inline constexpr auto DeleteDirectory = IPCCommand(
AddU32("Transaction", "Transaction parameter description"),
AddSerialized<ArchiveHandle>("Archive handle", "Handle for the archive the directory belongs to"),
AddSerialized<Path>("Path", "Directory path"),
...
);
};
The text was updated successfully, but these errors were encountered:
The IPC platform definitions in source/platform are super useful, but they were implemented at a time were C++ metaprogramming was highly limiting. With C++20, a much simpler and faster-to-compile syntax could be adopted. Furthermore, per-parameter description texts could be added (for integration in debug traces).
I'm thinking of something like this:
The text was updated successfully, but these errors were encountered: