Synopsis

(macro) void *osm_AddObject(long option, OSM_STACK *stack, void *object)

Purpose

Add an object to an object stack.

Description

This function will add the specified object to the specified stack and return a pointer to the object in the stack. The object will become the first object in the stack. If the object argument is specified as NULL, an uninitialized object will be added to the stack and its address returned.

Input

option

Options (not used)

stack

Stack pointer

object

Object pointer or NULL

Return

Object pointer in stack or NULL if error