Commit 08ed4f64 authored by Francis Dupont's avatar Francis Dupont
Browse files

[master] followed c99/c++11 standard for the variadic macro RECORD_DECL() (#3853)

parent e2ee0d75
...@@ -30,7 +30,7 @@ namespace { ...@@ -30,7 +30,7 @@ namespace {
/// @param name name of the array being declared. /// @param name name of the array being declared.
/// @param types data types of fields that belong to the record. /// @param types data types of fields that belong to the record.
#ifndef RECORD_DECL #ifndef RECORD_DECL
#define RECORD_DECL(name, types...) const OptionDataType name[] = { types } #define RECORD_DECL(name, ...) const OptionDataType name[] = { __VA_ARGS__ }
#endif #endif
/// @brief A pair of values: one pointing to the array holding types of /// @brief A pair of values: one pointing to the array holding types of
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment