mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
Move the END_WITH_NULL marker. Vladimir suggests that this works better with
GCC 4.1. I tried it with 4.0 and 3.3 and it seems fine. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23957 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
02d608bd5f
commit
a542b4c133
@ -334,14 +334,9 @@ 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;
|
||||
|
||||
template<class DataType>
|
||||
ValuesClass<DataType> values(const char *Arg, DataType Val, const char *Desc,
|
||||
...) {
|
||||
ValuesClass<DataType> END_WITH_NULL 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