ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


acsutils_version

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
acsutils_version [2019/08/26 21:00] korshunacsutils_version [2019/08/26 21:10] (current) korshun
Line 1: Line 1:
 ====== Get ACSUtils version ====== ====== Get ACSUtils version ======
  
-ACSUtils exposes its version as numeric constants and as a string. E.g. ACSUtils 1.8.0 will define the following constants:+===== 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:
  
 <code> <code>
Line 9: Line 15:
 </code> </code>
  
-===== ACSUtilsVersion ===== +===== Version as a string ===== 
-''str ACSUtilsVersion()''+ 
 +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.
  
-Returns ACSUtils version as a string, e.g. ''"1.8.0"''. This is a function instead of a constant because ACS doesn't support string constants.+''str ACSUtilsVersion()'' -- returns ACSUtils version as a string, e.g. ''"1.8.0"''.
  
-==== Example usage ====+Example:
  
 <code> <code>
 print(s:"This mod is using ACSUtils ", s:ACSUtilsVersion()); print(s:"This mod is using ACSUtils ", s:ACSUtilsVersion());
 +// prints "This mod is using ACSUtils 1.8.0"
 </code> </code>
  
acsutils_version.1566842429.txt.gz · Last modified: 2019/08/26 21:00 by korshun