static private CheckDeprecated ( |
||
cx | ||
name | string | |
return | void |
internal static void CheckDeprecated(Context cx, string name)
{
int version = cx.GetLanguageVersion();
if (version >= Context.VERSION_1_4 || version == Context.VERSION_DEFAULT)
{
string msg = GetMessage1("msg.deprec.ctor", name);
if (version == Context.VERSION_DEFAULT)
{
Context.ReportWarning(msg);
}
else
{
throw Context.ReportRuntimeError(msg);
}
}
}