Added check for appending code when not allowed.

This commit is contained in:
Peter Camilleri 2016-05-12 13:26:10 -04:00
parent 50312e7b4d
commit b64a528ad7
2 changed files with 2 additions and 0 deletions

Binary file not shown.

View file

@ -48,6 +48,8 @@ module XfOOrth
def <<(text) def <<(text)
dbg_puts " Append=#{text.inspect}" dbg_puts " Append=#{text.inspect}"
@buffer << text @buffer << text
rescue NoMethodError
error "F14: The current mode does not allow code to be appended."
end end
#Execute code from the interactive console. #Execute code from the interactive console.