On 25/05/2014 12:04, Rene Zwanenburg wrote:
Given
alias GLenum = uint;
void glSomeFunction(GLenum, uint);
Now, is there some way to differentiate between GLenum and uint when
using ParameterTypeTuple!glSomeFunction?
I'm writing a function which shows the arguments a GL function was
called with when an error occurs. The GLenum needs to be printed as a
stringified version of the constant's name, while the uint is just an uint.
Apparently this is deprecated even though alias cannot replicate it.
typedef uint GLenum;
writeln(GLenum.stringof);