Created
March 13, 2012 22:18
-
-
Save BenjaminPoulain/2032140 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enum KeywordValue { | |
NotKeyword, | |
ValidKeyword, | |
InvalidKeyword | |
} | |
static inline KeywordValue parseValidPrimitive(CSSPropertyID id, int value) | |
{ | |
switch(id) { | |
case CSSPropertyEmptyCells: // show | hide | inherit | |
if (id == CSSValueShow | |
|| id == CSSValueHide) | |
return ValidKeyword | |
return InvalidKeyword; | |
case: | |
foobar; | |
} | |
return NotKeyword; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment