mirror of
https://github.com/neovim/neovim.git
synced 2025-10-01 07:28:34 +00:00
*: Fix all V641 errors
This commit is contained in:
@@ -171,4 +171,16 @@
|
||||
# define FALLTHROUGH
|
||||
#endif
|
||||
|
||||
// -V:STRUCT_CAST:641
|
||||
|
||||
/// Change type of structure pointers: cast `struct a *` to `struct b *`
|
||||
///
|
||||
/// Used to silence PVS errors.
|
||||
///
|
||||
/// @param Type Structure to cast to.
|
||||
/// @param obj Object to cast.
|
||||
///
|
||||
/// @return ((Type *)obj).
|
||||
#define STRUCT_CAST(Type, obj) ((Type *)(obj))
|
||||
|
||||
#endif // NVIM_MACROS_H
|
||||
|
Reference in New Issue
Block a user