mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-18 06:55:48 +03:00
Migrated from robin_hood to unordered_dense (for UnorderedMap and UnorederedSet).
Added support for SmallVector using svector (and we are already using it in a couple of places). Added debug symbol inspector script for the new SmallVector in project/scripts/debug. Added tilde support for files and folders passed as parameters from the CLI in ecode (and added FileSystem::expandTilde). Fixed a bug in "light-dark" parsing.
This commit is contained in:
@@ -174,7 +174,7 @@ struct SourceBreakpoint {
|
||||
};
|
||||
|
||||
struct SourceBreakpointStateful : public SourceBreakpoint {
|
||||
bool enabled{ true };
|
||||
mutable bool enabled{ true };
|
||||
|
||||
SourceBreakpointStateful() = default;
|
||||
SourceBreakpointStateful( const json& body ) : SourceBreakpoint( body ) {}
|
||||
|
||||
@@ -1734,14 +1734,7 @@ bool DebuggerPlugin::breakpointSetEnabled( const std::string& doc, Uint32 lineNu
|
||||
auto breakpointIt = breakpoints.find( sb );
|
||||
if ( breakpointIt != breakpoints.end() ) {
|
||||
if ( enabled != breakpointIt->enabled ) {
|
||||
#ifdef EEPP_NO_THIRDPARTY_CONTAINERS
|
||||
SourceBreakpointStateful existingBreakpoint = *breakpointIt;
|
||||
breakpoints.erase( breakpointIt );
|
||||
existingBreakpoint.enabled = enabled;
|
||||
breakpoints.insert( existingBreakpoint );
|
||||
#else
|
||||
breakpointIt->enabled = enabled;
|
||||
#endif
|
||||
mBreakpointsModel->enable( doc, lineNumber, enabled );
|
||||
mThreadPool->run( [this, doc] { sendFileBreakpoints( doc ); } );
|
||||
getUISceneNode()->getRoot()->invalidateDraw();
|
||||
|
||||
Reference in New Issue
Block a user