- 31 May, 2024 1 commit
-
-
Stephen Toub authored
* Fix finalizability of Lua instances Lua instances end up being permanently rooted until Dispose is explicitly called, because the ctor roots the Lua instance into a static singleton of ObjectTranslatorPool. This fixes it by replacing the ConcurrentDictionary with a ConditionalWeakTable, in order to avoid the pool keeping a strong reference to the LuaState / Lua objects. * Try an alternate approach Instead of having the ObjectTranslatorPool store weak references, which means LuaState objects might get collected when still referenced by native code, have the ObjectTranslator store a weak rather than strong reference to the Lua object, which is what has the finalizer. * Disable test on mono
-
- 28 Jan, 2024 3 commits
-
-
Mohamadreza Nakhleh authored
* (fix) SetDebugHook returns -1 anyway * (fix) typo
-
yuwei authored
-
Vinicius Jarina authored
-
- 19 May, 2023 2 commits
-
-
dcronqvist authored
* Registering functions now only register 1 global, fix #480 * Changed `is not null` to `!= null` for backwards compatibility * Use `IsSubclassOf` instead of newer `IsAssignableTo` * Explicit type for anonymous function in unit test, for pre-C#10 compatibility * Only include test on `NETCOREAPP3_1_OR_GREATER`, added comment for test as well * Removed `NETCOREAPP3_1_OR_GREATER` check because it is unnecessary * Add LuaMemberAttribute, allows registered name in Lua to be different from C#, closes #488 * Explicit typing fix * Tests use IEnumerable<T>.Contains to check for existence instead
-
Vinicius Jarina authored
-
- 15 Mar, 2023 2 commits
-
-
dcronqvist authored
* Registering functions now only register 1 global, fix #480 * Changed `is not null` to `!= null` for backwards compatibility * Use `IsSubclassOf` instead of newer `IsAssignableTo` * Explicit type for anonymous function in unit test, for pre-C#10 compatibility * Only include test on `NETCOREAPP3_1_OR_GREATER`, added comment for test as well * Removed `NETCOREAPP3_1_OR_GREATER` check because it is unnecessary
-
Vinicius Jarina authored
* Fixing build * Bump Source.Link 1.1.1
-
- 04 Feb, 2023 2 commits
-
-
Vinicius Jarina authored
-
Roberto Iffland authored
* Added support for multiple return values via ValueTuple * Fixed .net46 build by conditionally removing tuple support --------- Co-authored-by:Roberto Iffland <roberto.iffland@spektra-dresden.com>
-
- 31 Jan, 2023 1 commit
-
-
Roberto Iffland authored
Changed the handling of variadic arguments. A Table doesn't work as a range of values anymore. (#476) Co-authored-by:Roberto Iffland <roberto.iffland@spektra-dresden.com>
-
- 26 Nov, 2022 1 commit
-
-
Mathyn authored
* Moved Lua _globals to a separate class (this class includes a fix for #468) * Added unit tests and made a small tweak to LuaGlobals * bin and obj for test .net6.0 project are now correctly ignored * Removed Assert.Contains calls because these are not supported on iOS and tvOS
-
- 14 Apr, 2022 1 commit
-
-
Erik Nilsen Haga authored
-
- 11 Nov, 2021 2 commits
-
-
-
Vinicius Jarina authored
-
- 09 Nov, 2021 1 commit
-
-
MegaPiggy authored
* Added Threads * Allowed userdata to be pushed. * Added a few more methods XMove: Exchange values between different threads of the same state (i.e. threads and interpreters). NewThread: basically just coroutine.create Reset: removes function from the thread * Added Thread Test * Added UserData Test. * remove optional index * Add thread properties * Added Operators & Overrides * Added 2 more methods * improve * Add thread equality test * Remove hash code override that I added. Added this earlier. I realized it shouldn't have been because LuaBase returns reference here. * Add base hash code * base equals
-
- 04 Nov, 2021 1 commit
-
-
BuildTools authored
Fixed bug where calling a method returning void through reflection threw an InvalidProgramException ( After calling the base method, the generated code would pop on the empty evaluation stack, as void methods don't push a return value onto the stack )
-
- 05 Oct, 2021 1 commit
-
-
Kagamia authored
-
- 08 Sep, 2021 1 commit
-
-
Erik Nilsen Haga authored
-
- 11 May, 2021 1 commit
-
-
Vlad Soroka authored
Check the the type to be numeric rather than a number. The side effect of IsNumber check causes numeric strings to be treated as numbers which leads to wrong overloaded method identification
-
- 19 Jan, 2021 2 commits
-
-
Vinicius Jarina authored
-
Vinicius Jarina authored
-
- 21 Oct, 2020 1 commit
-
-
Bradley Faskowitz authored
For a function on a net object with string parameters, the 'extractor' for a null string would return an object type. This extractor is cached, and on the next invocation, a non-null string parameter would try to be extracted as an object type, which would cause a failure.
-
- 18 Oct, 2020 2 commits
-
-
Vinicius Jarina authored
Use `fakenil` from https://github.com/NLua/NLua/issues/328#issuecomment-691483915 to avoid cache miss
-
Vinicius Jarina authored
-
- 03 May, 2020 1 commit
-
-
Vinicius Jarina authored
* Fixes #375 Possible bug not detecting constructor(.ctor) argument match
-
- 19 Apr, 2020 3 commits
-
-
Vinicius Jarina authored
* Fixed #370 Overloaded indexer operators `TryIndexMethods` was testing only the first index method (`get_Item`) * Fixing flaky test.
-
Vinicius Jarina authored
-
Thomas Nind authored
* Made RegisterGlobal maximum recursion level user configurable * Added test for MaximumRecursion field * Added reference to System.Data * Revert "Added test for MaximumRecursion field" This reverts commit d04299638765cdb73111a61288b7654ef51781ec. * Re added test (after fixing accidental whitespace changes) * Revert "Added reference to System.Data" This reverts commit 3e8838383a8d4f3e883bd3209614060fc1c755d1. * Changed TestMaximumRecursion to use NLuaTest.TestTypes.TestClass * Fix for NUnitLite not having `Greater` assertion
-
- 24 Feb, 2020 2 commits
-
-
Vinicius Jarina authored
-
Vinicius Jarina authored
* Guid has a lot of ctor overload, the `byte[]` was being used instead the `string`. Reorder ctor info before trying to match the parameters.
-
- 23 Feb, 2020 1 commit
-
-
Vinicius Jarina authored
-
- 19 Jan, 2020 1 commit
-
-
Vinicius Jarina authored
-
- 18 Jan, 2020 1 commit
-
-
Vinicius Jarina authored
* Lua.Error() will call setjmp and this can cause a crash with CLR on Linux, it seems that calling the setjmp longjmp twice will crash on *nix systems. This should make this issue work a bit better: https://github.com/NLua/NLua/issues/344
-
- 17 Jan, 2020 1 commit
-
-
Vinicius Jarina authored
-
- 13 Dec, 2019 1 commit
-
-
Vinicius Jarina authored
-
- 11 Dec, 2019 1 commit
-
-
Vinicius Jarina authored
* Related with #340 it seems .NET Core is crashing the process when there is a exception with native/manage frames.
-
- 02 Dec, 2019 1 commit
-
-
Vinicius Jarina authored
-
- 18 Oct, 2019 1 commit
-
-
Vinicius Jarina authored
-
- 14 Sep, 2019 1 commit
-
-
Vinicius Jarina authored
-