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

Summary: event is a keyword. using it for variable name confuses Visual Studio
Product: SDL Reporter: Jeff Shanab <jshanab42>
Component: eventsAssignee: Sam Lantinga <slouken>
Status: RESOLVED WONTFIX QA Contact: Sam Lantinga <slouken>
Severity: minor    
Priority: P2 CC: leeor_net
Version: 2.0.0   
Hardware: x86   
OS: Windows 7   

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.