mirror of
https://github.com/Drezil/dear-implot.hs.git
synced 2025-07-17 02:03:14 +02:00
compiles and works again.
This commit is contained in:
@ -99,6 +99,7 @@ plotHeaders = do
|
||||
( ( Left <$> try ignoreDefine)
|
||||
<|> ( Right <$> enumeration enumNamesAndTypes)
|
||||
<|> ( Left <$> ignoreStruct)
|
||||
<|> ( Left <$> cppConditionalIgnore)
|
||||
)
|
||||
( namedSection "Callbacks" )
|
||||
|
||||
@ -442,6 +443,13 @@ cppConditional = do
|
||||
void $ skipManyTill anySingle ( cppDirective ( \case { "endif" -> Just (); _ -> Nothing } ) )
|
||||
void $ skipManyTill anySingle ( single EndCPPLine )
|
||||
|
||||
cppConditionalIgnore :: MonadParsec e [Tok] m => m ()
|
||||
cppConditionalIgnore = do
|
||||
void $ cppDirective ( \case { "ifdef" -> Just (); "ifndef" -> Just (); "if" -> Just (); _ -> Nothing } )
|
||||
-- assumes no nesting
|
||||
void $ skipManyTill anySingle ( cppDirective ( \case { "endif" -> Just (); _ -> Nothing } ) )
|
||||
void $ skipManyTill anySingle ( single EndCPPLine )
|
||||
|
||||
ignoreDefine :: MonadParsec e [Tok] m => m ()
|
||||
ignoreDefine = do
|
||||
void $ many comment
|
||||
|
Reference in New Issue
Block a user