We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1493 - event is a keyword. using it for variable name confuses Visual Studio
Summary: event is a keyword. using it for variable name confuses Visual Studio
Status: RESOLVED WONTFIX
Alias: None
Product: SDL
Classification: Unclassified
Component: events (show other bugs)
Version: 2.0.0
Hardware: x86 Windows 7
: P2 minor
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-12 13:36 UTC by Jeff Shanab
Modified: 2013-07-31 00:00 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Shanab 2012-05-12 13:36:25 UTC
A minor inconvienance for a poor IDE, but event as used in the SDL_Event struct and many arguments in the library confuse Visual studio and defeat the ability to dig into them and get the value during debugging. 

I changed it in my local build to "evnt" as a test and it was not to bad of a change. 10 min
Comment 1 Leeor Dicker 2013-07-29 08:23:54 UTC
Which version of Visual Studio? Because I have no issues with VS2008/VS2010. You can't hover over it to get debug information but adding a watch clears it up.
Comment 2 Jeff Shanab 2013-07-30 06:49:03 UTC
It was visual studio 2010. Since than I started using visual assistantX and that improves the intellisense in such a case.
Comment 3 Sam Lantinga 2013-07-31 00:00:44 UTC
The API is frozen for the SDL 2.0 release, so we're not going to take care of this now.