1- using System ;
1+ using System ;
22using System . Collections . Generic ;
33using System . Diagnostics ;
44using System . Diagnostics . CodeAnalysis ;
@@ -66,7 +66,7 @@ public object? this[string name]
6666 }
6767
6868 /// <summary>
69- /// Gets or sets whether <see cref="Warning "/> should fire for emitted warnings. <br/>
69+ /// Gets or sets whether <see cref="WarningEmitted "/> should fire for emitted warnings. <br/>
7070 /// See <a href="https://www.lua.org/manual/5.4/manual.html#2.3">Error Handling (Lua manual)</a> and
7171 /// <a href="https://www.lua.org/manual/5.4/manual.html#pdf-warn"><c>warn (msg1, ···) (Lua Manual)</c></a> for more information about warnings.
7272 /// </summary>
@@ -84,7 +84,7 @@ public object? this[string name]
8484 /// <remarks>
8585 /// Subscribed event handlers must not throw any exceptions.
8686 /// </remarks>
87- public event EventHandler < LuaWarningEventArgs > Warning
87+ public event EventHandler < LuaWarningEmittedEventArgs > WarningEmitted
8888 {
8989 add => _warningHandlers . Add ( value ) ;
9090 remove => _warningHandlers . Remove ( value ) ;
@@ -100,7 +100,7 @@ public event EventHandler<LuaWarningEventArgs> Warning
100100 private readonly List < LuaLibrary > _openLibraries ;
101101
102102 private MemoryStream ? _warningBuffer ;
103- private readonly List < EventHandler < LuaWarningEventArgs > > _warningHandlers ;
103+ private readonly List < EventHandler < LuaWarningEmittedEventArgs > > _warningHandlers ;
104104
105105 public Lua ( )
106106 : this ( LuaMarshaler . Default )
@@ -128,7 +128,7 @@ private Lua(
128128 Marshaler = marshaler ;
129129
130130 _openLibraries = new List < LuaLibrary > ( ) ;
131- _warningHandlers = new List < EventHandler < LuaWarningEventArgs > > ( ) ;
131+ _warningHandlers = new List < EventHandler < LuaWarningEmittedEventArgs > > ( ) ;
132132 MainThread = LuaThread . CreateMainThread ( this ) ;
133133 Globals = LuaTable . CreateGlobalsTable ( this ) ;
134134
@@ -192,7 +192,7 @@ private static void WarningHandler(void* ud, byte* msg, int tocont)
192192 {
193193 foreach ( var handler in lua . _warningHandlers )
194194 {
195- handler . Invoke ( lua , new LuaWarningEventArgs ( message ) ) ;
195+ handler . Invoke ( lua , new LuaWarningEmittedEventArgs ( message ) ) ;
196196 }
197197 }
198198
@@ -234,7 +234,7 @@ public void EmitWarning(string? message)
234234 }
235235
236236 /// <summary>
237- /// Emits a Lua warning that can fire <see cref="Warning "/>. <br/>
237+ /// Emits a Lua warning that can fire <see cref="WarningEmitted "/>. <br/>
238238 /// See <a href="https://www.lua.org/manual/5.4/manual.html#2.3">Error Handling (Lua manual)</a> and
239239 /// <a href="https://www.lua.org/manual/5.4/manual.html#pdf-warn"><c>warn (msg1, ···) (Lua Manual)</c></a> for more information about warnings.
240240 /// </summary>
0 commit comments