Commit fe5df3d5 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

lua: remove add_callback and del_callback

add_callback could not work correctly with the (lack of) Lua threading
support. Fortunately, it was not in use.

del_callback depends on add_callback.
parent 1b01c5be
This diff is collapsed.
...@@ -399,12 +399,6 @@ var.create( object, name, value ): Create and set the object's variable "name" ...@@ -399,12 +399,6 @@ var.create( object, name, value ): Create and set the object's variable "name"
to "value". Created vars can be of type float, string, bool or void. to "value". Created vars can be of type float, string, bool or void.
For a void variable the value has to be 'nil'. For a void variable the value has to be 'nil'.
var.add_callback( object, name, function, data ): Add a callback to the
object's "name" variable. Callback functions take 4 arguments: the
variable name, the old value, the new value and data.
var.del_callback( object, name, function, data ): Delete a callback to
the object's "name" variable. "function" and "data" must be the same as
when add_callback() was called.
var.trigger_callback( object, name ): Trigger the callbacks associated with the var.trigger_callback( object, name ): Trigger the callbacks associated with the
object's "name" variable. object's "name" variable.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment