- 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 1 commit
-
-
yuwei authored
-
- 19 May, 2023 1 commit
-
-
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
-
- 04 Feb, 2023 1 commit
-
-
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>
-
- 24 Feb, 2020 1 commit
-
-
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.
-
- 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
-
- 22 Aug, 2019 1 commit
-
-
Vinicius Jarina authored
-
- 10 Feb, 2019 1 commit
-
-
Vinicius Jarina authored
* Avoid call GetExtensionMethod twice. * `LuaMethodWrapper.Call` cleanup.
-
- 09 Feb, 2019 1 commit
-
-
Vinicius Jarina authored
LuaState.ToString calls luaL_tolstring which can add something to the stack. using lua_tostring.
-
- 08 Feb, 2019 1 commit
-
-
Vinicius Jarina authored
* WIP cleanup * Trying fixing iPhoneSimTests. * More cleanups * Minified initLua loadCLRpackage
-
- 28 Jan, 2019 1 commit
-
-
Vinicius Jarina authored
* * Giant cleanup/reshuffle of all files. * * Update upstream `KeraLua` to `0.1.14` * Fixed .NET Core build. * Add runsettings file * * Fixed nuspec `dependencies` node * Ignore _ in branch names for package names. * * Fixed nuspec.
-