sgs_StorePath [function]
SGSBOOL sgs_StorePath( sgs_Context* C, sgs_Variable var, sgs_Variable val, const char* path, ... )
Set value val
to variable specified by starting point var
and traversal path path
.
The safety of this function is similar to that of the printf family of functions. Be explicit in what types you pass to the variable argument list to avoid errors.
- The syntax of
path
is the same as with sgs_PushPath. - The last item on the path (or in the case of an empty path, the starting point) is accessed with a store operation, the rest - with a push operation.