mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 23:31:37 +00:00
Work around GCC's dislike of attributes on function definitions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23896 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fec735fb84
commit
cc94b5178f
@ -334,9 +334,14 @@ public:
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Silly GCC doesn't allow attributes on a function definition.
|
||||||
template<class DataType>
|
template<class DataType>
|
||||||
ValuesClass<DataType> values(const char *Arg, DataType Val, const char *Desc,
|
ValuesClass<DataType> values(const char *Arg, DataType Val, const char *Desc,
|
||||||
...) END_WITH_NULL {
|
...) END_WITH_NULL;
|
||||||
|
|
||||||
|
template<class DataType>
|
||||||
|
ValuesClass<DataType> values(const char *Arg, DataType Val, const char *Desc,
|
||||||
|
...) {
|
||||||
va_list ValueArgs;
|
va_list ValueArgs;
|
||||||
va_start(ValueArgs, Desc);
|
va_start(ValueArgs, Desc);
|
||||||
ValuesClass<DataType> Vals(Arg, Val, Desc, ValueArgs);
|
ValuesClass<DataType> Vals(Arg, Val, Desc, ValueArgs);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user