mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-30 00:57:28 -04:00
Pass initialization value in RS_DEFAULT_STORAGE_PARAM
This commit is contained in:
parent
f2aa2aa543
commit
9c7a8d479f
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ bool myFunnyFunction(
|
||||||
* passed, so any effect on performace would happen only in case where the
|
* passed, so any effect on performace would happen only in case where the
|
||||||
* function is called without the parameter.
|
* function is called without the parameter.
|
||||||
*/
|
*/
|
||||||
#define RS_DEFAULT_STORAGE_PARAM(Type) *std::unique_ptr<Type>(new Type)
|
#define RS_DEFAULT_STORAGE_PARAM(Type,...) *std::unique_ptr<Type>(new Type(__VA_ARGS__))
|
||||||
|
|
||||||
void *rs_malloc(size_t size) ;
|
void *rs_malloc(size_t size) ;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue