Page MenuHomeFeedback Tracker

Preprocessor error in #define KEYWORD "string"
New, NormalPublic

Description

if you define a keyword with a string that contains two "/", all characters in string after two "/" are interpreted as comment

Details

Severity
None
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Operating System Version
1709
Category
Scripting
Steps To Reproduce
  1. Define a keyword with a string that contains "//"
#define TOBII_DEVICE_URL "tobii-ttp://IS404-100107428543"
  1. Use defined keyword in file
private _tobiiDeviceURL = TOBII_DEVICE_URL;
  1. Load file using preprocessorFile(LineNumbers) command
private _tobiiDeviceURL = "tobii-ttp:;
Additional Information

Preprocessor must ignore comments in strings defined by #define, like a normal C-preprocessor

Event Timeline

vlad333000 updated the task description. (Show Details)
vlad333000 renamed this task from Preprocess error in #define KEYWORD "string" to Preprocessor error in #define KEYWORD "string".Nov 25 2017, 11:20 PM
Dimonua added a subscriber: Dimonua.Sep 8 2018, 2:40 AM