void RouteCommand(char *command)
Internal CLIPS command modified by myself to be 're-entrant'. Takes a string containing a CLIPS command and executes it. This function cannot return a result from CLIPS on its own, but used in conjunction with the wxCLIPS function return-result and some predefined global variables the same effect can be achieved. For example,
wxFrame *main_frame = NULL; clipsReturnType = clipsUNKNOWN; RouteCommand("(return-result (app-on-init))"); if (clipsReturnType == clipsLONG) { main_frame = (wxFrame *)wxGetTypedObject(clipsReturnLong, wxTYPE_FRAME); }See the entry for return-result for more details.