mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-04-02 07:41:38 +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. llvm-svn: 23957
This commit is contained in:
parent
86ac518282
commit
b299faa5c1
@ -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…
x
Reference in New Issue
Block a user