Exemple #1
0
            /// <summary>
            /// Get logged messages.
            /// </summary>
            public static string[] Get()
            {
                unsafe
                {
                    byte **errorptr;
                    long   log_n = 0;
                    Gmsh_Warp.GmshLoggerGet(&errorptr, ref log_n, ref _staticreff);

                    var messages = UnsafeHelp.ToString(errorptr, log_n);
                    if (_staticreff != 0)
                    {
                        var method = MethodBase.GetCurrentMethod();
                        var where = $"{method.DeclaringType.FullName}.{method.Name}";
                        throw new GmshException("Could not get", where, _staticreff);
                    }
                    return(messages);
                }
            }