polserver/pol-core/bscript/compiler/representation/DebugBlock.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

25 lines
736 B
C++

#include "bscript/compiler/representation/DebugBlock.h"
namespace Pol::Bscript::Compiler
{
/*
* A DebugBlock names the local variables in a block.
*
* Suppose local_variables_base_index is 4 and local_variables == { "x, y, z" }
* local #0: look up using parent_block_index
* local #1: "
* local #2: "
* local #3: "
* local #4: local named x
* local #5: local named y
* local #6: local named z
*/
DebugBlock::DebugBlock( unsigned parent_block_index, unsigned base_index,
std::vector<std::string> local_variable_names )
: parent_block_index( parent_block_index ),
base_index( base_index ),
local_variable_names( std::move( local_variable_names ) )
{
}
} // namespace Pol::Bscript::Compiler