mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps] Gather asserts about the size of function name with argument
This commit is contained in:
committed by
LeaNumworks
parent
8f88f7fea6
commit
f73c80daa3
@@ -100,7 +100,6 @@ void VariableBoxController::willDisplayCellForIndex(HighlightCell * cell, int in
|
||||
}
|
||||
ExpressionTableCellWithExpression * myCell = (ExpressionTableCellWithExpression *)cell;
|
||||
Storage::Record record = recordAtIndex(index);
|
||||
assert(Shared::Function::k_maxNameWithArgumentSize > SymbolAbstract::k_maxNameSize);
|
||||
char symbolName[Shared::Function::k_maxNameWithArgumentSize];
|
||||
size_t symbolLength = 0;
|
||||
if (m_currentPage == Page::Expression) {
|
||||
@@ -188,8 +187,6 @@ bool VariableBoxController::selectLeaf(int selectedRow) {
|
||||
|
||||
// Get the name text to insert
|
||||
Storage::Record record = recordAtIndex(selectedRow);
|
||||
assert(Shared::Function::k_maxNameWithArgumentSize > 0);
|
||||
assert(Shared::Function::k_maxNameWithArgumentSize > SymbolAbstract::k_maxNameSize);
|
||||
constexpr size_t nameToHandleMaxSize = Shared::Function::k_maxNameWithArgumentSize;
|
||||
char nameToHandle[nameToHandleMaxSize];
|
||||
size_t nameLength = SymbolAbstract::TruncateExtension(nameToHandle, record.fullName(), nameToHandleMaxSize);
|
||||
|
||||
Reference in New Issue
Block a user