Ejemplo n.º 1
0
 public static string GetMethodNameForStackTrace(NativeFunction function)
 {
     if (function == null)
     {
         throw new ArgumentException("function cannot be null");
     }
     var methodVar = function["m"];
     if (methodVar == null)
     {
         // no function metadata available
         Logging.Debug("No function metadata available for function: " + function.NativeToString());
         return null;
     }
     Method method = methodVar.Cast<Method>();
     return method.FullName;
 }