#include "functiondelete.h" #include "gamestate.h" FunctionDelete::FunctionDelete() { } FunctionDelete::~FunctionDelete() { } void FunctionDelete::call( class GameState &gState ) { Variable v = gState.pop(); VariableRef r = v.getVariableRef(); gState.delVariable( r.sName, r.sid ); gState.push( Variable( Variable::tNull ) ); }