Regular API function

simHandleGeneralCallbackScript

Description Calls the general callback script. Call this function only from the simulation thread, not from the GUI thread.
C synopsis simInt simHandleGeneralCallbackScript(simInt callbackId,simInt callbackTag,simVoid* additionalData)
C parameters
callbackId: the callback ID that will be submitted to the general callback script as sim_callback_id variable. For user defined callbacks, use an ID starting at sim_callbackid_userdefined.
callbackTag: the callback tag that will be submitted to the general callback script as sim_callback_tag variable. The interpretation of this tag depends on the callback ID.
additionalData: reserved for future extensions. Set to NULL.
C return value
the value the general callback script returned. If there is no general callback script, then the returned value will be -1.
Lua synopsis -
Lua parameters
-
Lua return values
-

All regular API functions on one page