int push(int context_id, string text);

Adds text as the top message on the message stack. The context_id is an integer returned by get_context_id() and identifies the type of message being added.

push() returns an integer identifier for the message that is added. This value can be used to remove the message using remove_message() .

See also: get_context_id() , pop()