View Issue Details

IDProjectCategoryView StatusLast Update
0000174LDMudLPC Compiler/Preprocessorpublic2010-02-14 11:38
ReporterlarsAssigned To 
PrioritynormalSeverityminorReproducibilityN/A
Status newResolutionopen 
Summary0000174: Preprocessor is not ISO-C compatible.
DescriptionShort: Preprocessor is not Standard-C compatible
Date: Tue, 22 Dec 1998 13:36:24 +0200 (EET)
Type: Feature
State: Acknowledged

Points in question:
 - macro substitution in strings shouldn't be done
 - no # or ## operators
 - this
     #define FUNCTION(func) #'func
   doesn't work as expected

Also the C-99 features are missing.
TagsNo tags attached.
External Data (URL)

Relationships

related to 0000605 new LDMud 3.5 Ideas for the preprocessor (start-end-tag-defines, foreach-loop) 
related to 0000729 resolvedzesstra LDMud 3.3 Replacement of macro parameters doesn't strip trailing whitespaces 

Activities

graveluth

2010-02-14 11:38

reporter   ~0001727

Last edited: 2010-02-14 11:39

Actually, I would like to have the # feature:

#define quote( X ) #X /* quote( foo ) is expanded to "foo" */

This is just an example the actual macro I want construct is slightly more complex.

Btw. we (Evermore) are using 3.5.

Issue History

Date Modified Username Field Change
2004-11-26 21:15 lars New Issue
2009-10-06 02:44 zesstra Relationship added related to 0000605
2010-02-14 11:38 graveluth Note Added: 0001727
2010-02-14 11:39 graveluth Note Edited: 0001727
2010-03-14 17:51 zesstra Relationship added related to 0000729