mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-19 19:29:31 +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>
|
||||
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_start(ValueArgs, Desc);
|
||||
ValuesClass<DataType> Vals(Arg, Val, Desc, ValueArgs);
|
||||
|
Loading…
Reference in New Issue
Block a user