Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13157] TiAPI: Support for macros in comments

GitHub Issuen/a
TypeStory
PriorityLow
StatusClosed
ResolutionWon't Fix
Resolution Date2016-08-29T18:25:48.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTiAPI
Labelsn/a
ReporterBryan Hughes
AssigneeEric Merriman
Created2013-03-22T00:27:54.000+0000
Updated2017-03-21T17:58:23.000+0000

Description

Macros in C++ are very useful for excluding debugging code from production builds. We can accomplish something very similar using structured comments. An example could look like:
/*ifdef DEBUG*/
console.log('I'm debug code');
/*endif*/

Comments

  1. Chris Barber 2016-08-29

    I don't really see this as a good idea.
  2. Lee Morris 2017-03-21

    Closing ticket as the issue will not fix.

JSON Source