1. 01 Jun, 2024 1 commit
  2. 31 May, 2024 1 commit
    • Stephen Toub's avatar
      Fix finalizability of Lua instances (#531) · 012d69a7
      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
      012d69a7
  3. 30 May, 2024 1 commit
  4. 21 Feb, 2024 1 commit
  5. 03 Feb, 2024 1 commit
  6. 29 Jan, 2024 2 commits
  7. 28 Jan, 2024 6 commits
  8. 04 Jun, 2023 2 commits
  9. 20 May, 2023 1 commit
  10. 19 May, 2023 5 commits
    • dcronqvist's avatar
      Add LuaMemberAttribute (#489) · 9026d802
      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
      9026d802
    • Vinicius Jarina's avatar
      Fix UWP build on VS 2022 · 656191ee
      Vinicius Jarina authored
      656191ee
    • Vinicius Jarina's avatar
      Fix CI · 189904f4
      Vinicius Jarina authored
      189904f4
    • Vinicius Jarina's avatar
      Fix build · d63b8b86
      Vinicius Jarina authored
      d63b8b86
    • Vinicius Jarina's avatar
      Bump KeraLua + net6 -> net7 · ea506a73
      Vinicius Jarina authored
      ea506a73
  11. 15 Mar, 2023 2 commits
    • dcronqvist's avatar
      Registering functions now only register 1 global, fix #480 (#481) · 9df4990c
      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
      9df4990c
    • Vinicius Jarina's avatar
      Fix build (#483) · 9544136c
      Vinicius Jarina authored
      * Fixing build
      
      * Bump Source.Link 1.1.1
      9544136c
  12. 04 Feb, 2023 2 commits
  13. 31 Jan, 2023 1 commit
  14. 26 Nov, 2022 2 commits
  15. 28 Apr, 2022 1 commit
  16. 14 Apr, 2022 1 commit
  17. 28 Feb, 2022 2 commits
  18. 11 Nov, 2021 8 commits