View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000914 | LDMud 3.6 | LPC Compiler/Preprocessor | public | 2024-08-23 17:24 | 2024-08-23 17:24 |
Reporter | gorgar | Assigned To | |||
Priority | low | Severity | trivial | Reproducibility | always |
Status | new | Resolution | open | ||
Product Version | 3.6.6 | ||||
Summary | 0000914: compile error due to syntax + comment | ||||
Description | Not sure if this is even worth looking into but in the first example when the SET_DATA definition is in use, the error message about the spurious character is misleading, making it difficult to troubleshoot. When the definition isn't used, the error makes sense. #define SET_DATA(x, y) set_data(x, y) Line has a typo, missing ) toward the end: ob->SET_DATA("AC", CalcAC(ob->query_all_data(), itembonuses, spellbonuses, aabonuses, 0 /*skip caps*/); 2024.08.23 13:16:29 daemon/stats_d.c line 1439: Unexpected end of file (or a spurious 0x01 character) before ' softcap'. 2024.08.23 13:16:29 daemon/stats_d.c line 1439: syntax error before end of line. If I don't use the definition: ob->set_data("AC", CalcAC(ob->query_all_data(), itembonuses, spellbonuses, aabonuses, 0 /*skip caps*/); '.24.08.23 13:21:29 daemon/stats_d.c line 494: syntax error before ' '.24.08.23 13:21:29 daemon/stats_d.c line 517: syntax error before '; '.24.08.23 13:21:29 daemon/stats_d.c line 518: Bad assignment: illegal lhs (target) before ' 2024.08.23 13:21:29 daemon/stats_d.c line 520: Variable level not declared before ' 65) * 5);'. 2024.08.23 13:21:29 Error in loading object: 'daemon/stats_d'. | ||||
Tags | No tags attached. | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2024-08-23 17:24 | gorgar | New Issue |