patch 9.0.1330: handling new value of an option has a long "else if" chain
Problem: Handling new value of an option has a long "else if" chain. Solution: Use a function pointer. (Yegappan Lakshmanan, closes #12015)
This commit is contained in:
committed by
Bram Moolenaar
parent
997b8a015c
commit
af93691b53
@ -14,7 +14,7 @@
|
||||
#define _OPTION_H_
|
||||
|
||||
//
|
||||
// Flags
|
||||
// Option Flags
|
||||
//
|
||||
#define P_BOOL 0x01 // the option is boolean
|
||||
#define P_NUM 0x02 // the option is numeric
|
||||
|
||||
Reference in New Issue
Block a user