ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


bcc

This is an old revision of the document!


BCC

BCC is an alternative ACS compiler.

GitHub: https://github.com/wormt/bcc

Known bugs

Named clientside scripts are not clientside

BCC fails to mark named clientside scripts as clientside, so they end up actually being serverside. Instead, it marks an unnamed script as clientside.

Details: https://zandronum.com/tracker/view.php?id=3153

Functions return 0 by default (not a bug)

function int f() {} // returns 0

If a function that returns a value reaches the end, and there is no “return” statement at the end, the function returns 0. This is done to avoid false compiler errors like this:

function int f(void)
{
    if (x)
        return 1;
    else
        return 2;
    
    // ACC will complain that the function doesn't return a value
}
bcc.1499597548.txt.gz · Last modified: 2017/07/09 13:52 by korshun