&on_change wrapup: documentation, tests, whitespacing

Adds documentation, fixes a whitespace issues, fixes compiler warning on
some Linux system, extends test.
This commit is contained in:
Johanna Amann 2020-02-05 14:15:14 -08:00
parent b6a244f784
commit b1040f88c9
5 changed files with 10 additions and 6 deletions

View file

@ -1969,7 +1969,7 @@ void TableVal::CallChangeFunc(const Val* index, Val* old_value, OnChangeType tpe
const Func* f = thefunc->AsFunc();
val_list vl { Ref() };
EnumVal* type;
EnumVal* type = nullptr;
switch ( tpe )
{
case element_new: