Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision |
new:bcsutils [2018/02/16 22:19] – korshun | new:bcsutils [2018/02/17 03:23] – korshun |
---|
====== BCSUtils ====== | ====== BCSUtils ====== |
BCSUtils is a [[BCC]]-enhanced version of ACSUtils. It has exactly the same functions and constants as ACSUtils, so all ACSUtils documentation also works for BCSUtils. | BCSUtils is an enhanced version of ACSUtils designed for use with the [[BCC]] compiler. BCSUtils is not a separate project. ACSUtils and BCSUtils are produced from the same source code and always stay in sync. BCSUtils has exactly the same functions and constants as ACSUtils, so all ACSUtils documentation also works for BCSUtils. |
| |
<note tip>BCSUtils is not a separate project. ACSUtils and BCSUtils are produced from the same source code and always stay in sync.</note> | All ACSUtils documentation always uses the most specific types (''fixed'', ''bool'', etc instead of ''int''), so all its declarations match BCSUtils. |
| |
===== Features ===== | The only exception is when the documentation uses ''num'' (meaning that both ''int'' and ''fixed'' work in this context) in function declarations. BCSUtils versions of such functions use ''raw'' (any type) in place of ''num'', because BCC doesn't have a way to express an "''int'' or ''fixed''" type. |
* Strict typing for all functions and constants. | |
| ===== Differences from ACSUtils ===== |
| * Supports [[strict typing]] for **all** functions and constants. |
* All functions are in the ''BCSUtils'' namespace. | * All functions are in the ''BCSUtils'' namespace. |
| * **Requires BCC and can only be included from ''.bcs'' files.** |
| |
===== Using BCSUtils ===== | ===== Using BCSUtils ===== |
| |
Just include ''bcsutils.bcs'' instead of ''acsutils.acs'' and make sure the file you're including is from is ''.bcs'' and not ''.acs''. | Just include ''bcsutils.bcs'' instead of ''acsutils.acs'' and make sure the file you're including it from is ''.bcs'' and not ''.acs''. |
| |
<code> | <code> |
#library "project" | #library "project" |
| |
#include "zcommon.acs" | #include "zcommon.bcs" |
#include "bcsutils.bcs" | #include "bcsutils.bcs" |
| |