Skip to content

Commit f10056f

Browse files
committed
InputValue: Add a warning for unsupported value type
1 parent 91da993 commit f10056f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/scratch/inputvalue.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include <scratchcpp/variable.h>
88
#include <scratchcpp/list.h>
99
#include <map>
10+
#include <iostream>
1011

1112
#include "inputvalue_p.h"
1213

@@ -117,6 +118,7 @@ void InputValue::setValuePtr(const std::shared_ptr<Entity> &newValuePtr)
117118
else {
118119
impl->valuePtr = nullptr;
119120
impl->valueId = "";
121+
std::cout << "warning: unsupported input value type (use InputValue::setValueBlock() to set the block)" << std::endl;
120122
return;
121123
}
122124

0 commit comments

Comments
 (0)