This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| bcc [2017/07/09 10:47] – korshun | bcc [2018/02/16 20:11] (current) – korshun | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | {{tag> | ||
| ====== BCC ====== | ====== BCC ====== | ||
| BCC is an alternative ACS compiler. | BCC is an alternative ACS compiler. | ||
| - | **GitHub:** https:// | + | * **ZDoom forums:** https:// |
| + | * **GitHub:** https:// | ||
| - | ===== Known bugs ===== | + | <note tip>If you are using BCC, use [[BCSUtils]].</ |
| - | ==== Named clientside scripts are not clientside | + | ===== Functions return 0 by default (not a bug) ===== |
| - | BCC fails to mark named clientside scripts as clientside, so they end up actually being serverside. | + | < |
| + | function int f() {} // returns 0 | ||
| + | </ | ||
| - | Instead, it marks an unnamed script as clientside. | + | If a function that returns a value reaches the end, and there is no " |
| + | |||
| + | < | ||
| + | function int f(void) | ||
| + | { | ||
| + | if (x) | ||
| + | return 1; | ||
| + | else | ||
| + | return 2; | ||
| + | |||
| + | // ACC will complain that the function doesn' | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ===== Fixed bugs ===== | ||
| + | |||
| + | <note tip> | ||
| + | |||
| + | ==== 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. | ||
| Details: https:// | Details: https:// | ||
| + | |||