sculpto
Namespaces | Macros | Functions
memory_swap.h File Reference

Memory swap function implementation module. More...

#include "base.h"

Go to the source code of this file.

Namespaces

namespace  scl
 

Macros

#define SCL_MEMORY_SWAP(BlockA, BlockB)
 

Functions

void scl::MemorySwap (void *BlockA, void *BlockB, size_t Size)
 

Detailed Description

Memory swap function implementation module.

Author
Sabitov Kirill
Date
28 June 2022

Definition in file memory_swap.h.

Macro Definition Documentation

◆ SCL_MEMORY_SWAP

#define SCL_MEMORY_SWAP (   BlockA,
  BlockB 
)
Value:
SCL_CORE_ASSERT(sizeof(*BlockA) == sizeof(*BlockB), \
"Swaping memory blocks are of diffrent size!"); \
MemorySwap((void*)BlockA,(void*)BlockB, sizeof(*BlockA))
#define SCL_CORE_ASSERT(expr,...)
Definition: assert.h:69

Definition at line 38 of file memory_swap.h.