mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-15 01:17:16 -05:00
Pass initialization value in RS_DEFAULT_STORAGE_PARAM
This commit is contained in:
parent
f2aa2aa543
commit
9c7a8d479f
@ -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…
Reference in New Issue
Block a user