| 1240 | //============================================================================= |
| 1241 | |
| 1242 | static void ParseAddOptionMenu(FScanner &sc) |
| 1243 | { |
| 1244 | sc.MustGetString(); |
| 1245 | |
| 1246 | DMenuDescriptor **pOld = MenuDescriptors.CheckKey(sc.String); |
| 1247 | if (pOld == nullptr || *pOld == nullptr || !(*pOld)->IsKindOf(RUNTIME_CLASS(DOptionMenuDescriptor))) |
| 1248 | { |
| 1249 | sc.ScriptError("%s is not an option menu that can be extended", sc.String); |
| 1250 | return; |
| 1251 | } |
| 1252 | ParseOptionMenuBody(sc, (DOptionMenuDescriptor*)(*pOld), GetInsertIndex(sc, *pOld)); |
| 1253 | } |
| 1254 | |
| 1255 | |
| 1256 | //============================================================================= |
no test coverage detected