Mercurial > dwindows
comparison win/dw.c @ 2091:68f1924fdd13
Restructure feature switch so fallback return is in the default case.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 11 Jun 2020 01:27:38 +0000 |
parents | cdb94c6fd611 |
children | 95b9c7780f3f |
comparison
equal
deleted
inserted
replaced
2090:cdb94c6fd611 | 2091:68f1924fdd13 |
---|---|
13384 if(_DW_DARK_MODE_SUPPORTED) | 13384 if(_DW_DARK_MODE_SUPPORTED) |
13385 return _DW_DARK_MODE_ALLOWED; | 13385 return _DW_DARK_MODE_ALLOWED; |
13386 break; | 13386 break; |
13387 } | 13387 } |
13388 #endif | 13388 #endif |
13389 default: | |
13390 return DW_FEATURE_UNSUPPORTED; | |
13389 } | 13391 } |
13390 return DW_FEATURE_UNSUPPORTED; | |
13391 } | 13392 } |
13392 | 13393 |
13393 /* | 13394 /* |
13394 * Sets the state of the requested library feature. | 13395 * Sets the state of the requested library feature. |
13395 * Parameters: | 13396 * Parameters: |
13427 { | 13428 { |
13428 _DW_DARK_MODE_ALLOWED = state; | 13429 _DW_DARK_MODE_ALLOWED = state; |
13429 return DW_ERROR_NONE; | 13430 return DW_ERROR_NONE; |
13430 } | 13431 } |
13431 #endif | 13432 #endif |
13433 default: | |
13434 return DW_FEATURE_UNSUPPORTED; | |
13432 } | 13435 } |
13433 return DW_FEATURE_UNSUPPORTED; | 13436 } |
13434 } | 13437 |
13435 |