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

You can retrieve current ACSUtils version as numbers or as a string.

Version as numbers

For example, ACSUtils 1.8.0 defines 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.1566842974.txt.gz · Last modified: 2019/08/26 21:09 by korshun