View Issue Details

IDProjectCategoryView StatusLast Update
0000914LDMud 3.6LPC Compiler/Preprocessorpublic2024-08-23 17:24
Reportergorgar Assigned To 
PrioritylowSeveritytrivialReproducibilityalways
Status newResolutionopen 
Product Version3.6.6 
Summary0000914: compile error due to syntax + comment
DescriptionNot 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'.
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2024-08-23 17:24 gorgar New Issue