ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


acsutils_version

Get ACSUtils version

Introduction

You can retrieve the version of ACSUtils used in your mod 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.txt · Last modified: 2019/08/26 21:10 by korshun