[TIMOB-13157] TiAPI: Support for macros in comments
| GitHub Issue | n/a |
|---|---|
| Type | Story |
| Priority | Low |
| Status | Closed |
| Resolution | Won't Fix |
| Resolution Date | 2016-08-29T18:25:48.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | TiAPI |
| Labels | n/a |
| Reporter | Bryan Hughes |
| Assignee | Eric Merriman |
| Created | 2013-03-22T00:27:54.000+0000 |
| Updated | 2017-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*/
I don't really see this as a good idea.
Closing ticket as the issue will not fix.