polserver/pol-core/bscript/compiler/codegen/DebugBlockGuard.cpp
turleypol 1463b76c7c
Includes are now all relative to pol-core basefolder (#906)
* all except pol

* pol and includes under defines

* something weird has happened

* remove own folder from include searchpath

* fixed remaining, adapted include style for external headers

* missing include
2026-07-25 23:01:18 +02:00

20 lines
641 B
C++

#include "bscript/compiler/codegen/DebugBlockGuard.h"
#include "bscript/compiler/codegen/InstructionEmitter.h"
#include "bscript/compiler/model/LocalVariableScopeInfo.h"
#include "bscript/compiler/model/Variable.h"
namespace Pol::Bscript::Compiler
{
DebugBlockGuard::DebugBlockGuard( InstructionEmitter& emitter,
LocalVariableScopeInfo& local_variable_scope_info )
: emitter( emitter ),
previous_block_id( emitter.enter_debug_block( local_variable_scope_info ) )
{
}
DebugBlockGuard::~DebugBlockGuard()
{
emitter.set_debug_block( previous_block_id );
}
} // namespace Pol::Bscript::Compiler