ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


bcc

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
Next revisionBoth sides next revision
bcc [2017/07/09 13:47] korshunbcc [2017/07/14 16:17] korshun
Line 1: Line 1:
 +{{tag>acs_compilers}}
 ====== BCC ====== ====== BCC ======
 BCC is an alternative ACS compiler. BCC is an alternative ACS compiler.
  
-**GitHub:** https://github.com/wormt/bcc+  * **ZDoom forums:** https://forum.zdoom.org/viewtopic.php?f=44&t=54037 
 +  * **GitHub:** https://github.com/wormt/bcc
  
-===== Known bugs =====+===== Functions return 0 by default (not a bug) =====
  
-==== Named clientside scripts are not clientside ====+<code> 
 +function int f() {} // returns 0 
 +</code>
  
-BCC fails to mark named clientside scripts as clientsideso they end up actually being serverside.+If a function that returns a value reaches the endand there is no "return" statement at the end, the function returns 0This is done to avoid false compiler errors like this:
  
-Instead, it marks an unnamed script as clientside.+<code> 
 +function int f(void) 
 +
 +    if (x) 
 +        return 1; 
 +    else 
 +        return 2; 
 +     
 +    // ACC will complain that the function doesn't return a value 
 +
 +</code> 
 + 
 +===== Fixed bugs ===== 
 + 
 +<note tip>These bugs are already fixed.</note> 
 + 
 +==== Named clientside scripts are not clientside [fixed in 0.8.0] ==== 
 + 
 +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 Details: https://zandronum.com/tracker/view.php?id=3153
 +
  
  
bcc.txt · Last modified: 2018/02/16 22:11 by korshun