Add file info to RTInfo
Jacob Carlborg
doob at me.com
Tue Jun 4 06:53:32 PDT 2013
How about adding file info to the RTInfo template. Currently the
template look like this:
template RTInfo(T)
{
enum RTInfo = cast(void*)0x12345678;
}
How about changing the parameters to this:
template RTInfo(T, string mod = __MODULE__, string file = __FILE__,
size_t line = __LINE__)
{
enum RTInfo = cast(void*)0x12345678;
}
Does that even work? I mean, the compiler is instantiating that template.
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list