lua-utils: allow object tracking to be enabled from the outside.
authorKrisztian Litkey <krisztian.litkey@intel.com>
Thu, 20 Mar 2014 17:52:37 +0000 (19:52 +0200)
committerKrisztian Litkey <krisztian.litkey@intel.com>
Thu, 20 Mar 2014 18:25:37 +0000 (20:25 +0200)
commita83a643a79fc5e8a49cb1be114def53f0594b556
treec4ec02863b516854a3637dfc01385949a12c3006
parentc037a48953b1815b0fc3a32ac3ded0b9f247c02c
lua-utils: allow object tracking to be enabled from the outside.

Added a function to enable/disable object tracking externally.
Currently this is used (in lua-murphy) to automatically turn on
object tracking whenever Lua memory tracking is enabled. Note
that once the first object has been allocated, the state of
tracking cannot be altered since it would have an effect on the
size of object userdata.
src/core/lua-utils/object.c
src/core/lua-utils/object.h