{ "id": "82618", "key": "AC-2900", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2011-12-26T05:25:52.000+0000", "created": "2011-11-10T21:37:54.000+0000", "labels": [ "compiler", "defines.h", "ios" ], "versions": [], "issuelinks": [], "assignee": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "updated": "2016-03-08T07:47:52.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "I had the following code in an app:\r\n\r\nreturn Titanium.App.statusHistory || '';\r\n\r\nIt caused the following two lines to be generated in defines.h when attempting to run on the device (did not seem to affect when using the emulator):\r\n\r\n#define USE_TI_APPSTATUSHISTORY 1\r\n#define USE_TI_APPSTATUSHISTORY||'' 1\r\n\r\nThe second line caused the compiler to choke with an error.\r\n\r\nA simple workaround was to re-write the code in my app to not use the \"or\" operator in that way, however I thought it should be reported.", "attachment": [], "flagged": false, "summary": "Using or operator with Ti.App variable generates invalid code in defines.h", "creator": { "name": "jakejake", "key": "jakejake", "displayName": "Jason Hinkle", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jakejake", "key": "jakejake", "displayName": "Jason Hinkle", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "OSX", "comment": { "comments": [ { "id": "177184", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Jason\r\n\r\nBe aware that you should not add properties to any of the Titanium objects. I will close this ticket for now. Please reopen it if you can prove that this is not the cause.\r\n\r\nIf you do reopen, be certain to follow the [How to Submit a Bug Report|https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report] guide in full.\r\n\r\nThanks", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-12-26T05:25:44.000+0000", "updated": "2011-12-26T05:25:44.000+0000" }, { "id": "183556", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Closing due to inactivity. If this issue still exists, please raise a new ticket, including all the information in the [JIRA Ticket Checklist|https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-JIRATicketChecklist] to ensure that we can escalate it quickly. Read [How to Submit a Bug Report|https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report] if you have not read it before, and always start a ticket using the [JIRA Ticket Template|https://wiki.appcelerator.org/display/guides/JIRA+Ticket+Template].\r\n\r\nThanks in advance", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2012-02-17T02:23:09.000+0000", "updated": "2012-02-17T02:23:09.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }