Pass initialization value in RS_DEFAULT_STORAGE_PARAM

This commit is contained in:
Gioacchino Mazzurco 2019-04-15 00:09:01 +02:00
parent f2aa2aa543
commit 9c7a8d479f
No known key found for this signature in database
GPG Key ID: A1FBCA3872E87051

View File

@ -60,7 +60,7 @@ bool myFunnyFunction(
* passed, so any effect on performace would happen only in case where the
* 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) ;