Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plPXConvert::Validate to compile time #328

Merged
merged 1 commit into from
May 23, 2013
Merged

Conversation

Hoikas
Copy link
Member

@Hoikas Hoikas commented May 23, 2013

Refactor plPXConvert::Validate to be compile-time checks. I am saddened by the fact that this was a runtime check, especially given the availability of offsetof (and an alternative in CoreLib) and eap's old compiler_assert.

Seriously? Offsetof has been around for a long time, and eap added a
compiler_assert for his crazy netcode. There's no excuse for that to be
happening at runtime.
@zrax
Copy link
Member

zrax commented May 23, 2013

👍

branan pushed a commit that referenced this pull request May 23, 2013
plPXConvert::Validate to compile time
@branan branan merged commit e3fa96b into H-uru:master May 23, 2013
@Hoikas Hoikas deleted the px-convert branch May 24, 2013 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants