]> git.mxchange.org Git - simgear.git/commit
Nasal: add an naRef to ghosts to allow for proper gc of dependent objects/ghosts.
authorThomas Geymayer <tomgey@gmail.com>
Sun, 23 Nov 2014 22:39:56 +0000 (23:39 +0100)
committerThomas Geymayer <tomgey@gmail.com>
Sun, 23 Nov 2014 22:45:22 +0000 (23:45 +0100)
commit9537876bba38b31a7ba6be6ab79f21b335c7b659
tree65bf9615b864e46c6dae2deea5e75094008331e0
parent958ae9bdf0c1c71280b5dfeeacb0bd0b73e9e791
Nasal: add an naRef to ghosts to allow for proper gc of dependent objects/ghosts.

This allows for binding the lifetime of any nasal object to
the lifetime of a ghost. Otherwise circular references from
objects saved within the ghost would prevent the ghost from
being garbage collected.
13 files changed:
simgear/nasal/cppbind/CMakeLists.txt
simgear/nasal/cppbind/cppbind_test.cxx [deleted file]
simgear/nasal/cppbind/cppbind_test_ghost.cxx [deleted file]
simgear/nasal/cppbind/nasal_num_test.cxx [deleted file]
simgear/nasal/cppbind/test/TestContext.hxx [new file with mode: 0644]
simgear/nasal/cppbind/test/cppbind_test.cxx [new file with mode: 0644]
simgear/nasal/cppbind/test/cppbind_test_ghost.cxx [new file with mode: 0644]
simgear/nasal/cppbind/test/nasal_gc_test.cxx [new file with mode: 0644]
simgear/nasal/cppbind/test/nasal_num_test.cxx [new file with mode: 0644]
simgear/nasal/data.h
simgear/nasal/gc.c
simgear/nasal/misc.c
simgear/nasal/nasal.h