Incremental commit: implementing a wrapper for the Val class.

Just a checkpoint: need to add / update tests to make sure things work as expected.  Should build / pass core btests, though.
This commit is contained in:
Gilbert Clark 2014-09-27 08:03:30 -04:00
parent 8d04f58eda
commit d639488d36
8 changed files with 127 additions and 56 deletions

View file

@ -559,7 +559,7 @@ int Manager::HookLoadFile(const string& file)
return rc;
}
Val* Manager::HookCallFunction(const Func* func, Frame* parent, val_list* vargs) const
ValWrapper* Manager::HookCallFunction(const Func* func, Frame* parent, val_list* vargs) const
{
HookArgumentList args;
@ -573,7 +573,7 @@ Val* Manager::HookCallFunction(const Func* func, Frame* parent, val_list* vargs)
hook_list* l = hooks[HOOK_CALL_FUNCTION];
Val* v = 0;
ValWrapper* v = 0;
if ( l )
for ( hook_list::iterator i = l->begin(); i != l->end(); ++i )
@ -582,7 +582,7 @@ Val* Manager::HookCallFunction(const Func* func, Frame* parent, val_list* vargs)
v = p->HookCallFunction(func, parent, vargs);
if ( v )
if ( v && v-> processed)
break;
}