Table of Contents

zvar_Rename

Description

Changes the name of a variable.

Files

Declaration Zeolite.h
Implementation Zeolite.cpp

Function prototype

bool zvar_Rename(ZVAR hVar, const char* lpNewName);

Arguments

Name Type Comment
hVar ZVAR A ZVAR handle to the variable to be renamed.
lpNewName const char* A pointer to a C-style string containing the new name of the variable.

Return value

False if:

True otherwise.

Comments

Be nice!

This function allows you to rename any variable in the shared memory (e.g. those created by zvar_CreateShared), including those created by other plugins. Furthermore, you can re-name important stuff like L3DT's project maps or file formats, which will only result in pain and suffering for all. Hence, plugins should only call zvar_Rename on variables they have created, and only then in moderation.