* @brief Register a handler for a RHS (right hand side) function. * This function can be called in the RHS of a production firing * allowing a user to quickly extend Soar with custom methods added to the client. * * The methods should only operate on the incoming argument list and return a * result without access to other external information to remain with the theory o
| 2164 | * @returns Unique ID for this callback. Required when unregistering this callback. |
| 2165 | *************************************************************/ |
| 2166 | int Kernel::AddRhsFunction(char const* pRhsFunctionName, RhsEventHandler handler, void* pUserData, bool addToBack) |
| 2167 | { |
| 2168 | smlRhsEventId id = smlEVENT_RHS_USER_FUNCTION ; |
| 2169 | |
| 2170 | return InternalAddRhsFunction(id, pRhsFunctionName, handler, pUserData, addToBack) ; |
| 2171 | } |
| 2172 | |
| 2173 | /************************************************************* |
| 2174 | * @brief Unregister for a particular RHS function |
no outgoing calls