ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


acsutils_version

This is an old revision of the document!


Get ACSUtils version

Introduction

ACSUtils exposes its version as numeric constants and as a string. E.g. ACSUtils 1.8.0 will define the following constants:

#define ACSUTILS_VERSION_MAJOR 1
#define ACSUTILS_VERSION_MINOR 8
#define ACSUTILS_VERSION_PATCH 0

Version as a string

ACSUtils also provides a simple function to get ACSUtis version as string. The reason it's not a constant is because ACC doesn't support string constants.

str ACSUtilsVersion() – returns ACSUtils version as a string, e.g. “1.8.0”.

Example:

print(s:"This mod is using ACSUtils ", s:ACSUtilsVersion());
// prints "This mod is using ACSUtils 1.8.0"
acsutils_version.1566842869.txt.gz · Last modified: 2019/08/26 21:07 by korshun