mirror of
https://github.com/PeterCamilleri/fOOrth
synced 2024-11-16 07:47:56 +01:00
Added check for appending code when not allowed.
This commit is contained in:
parent
50312e7b4d
commit
b64a528ad7
2 changed files with 2 additions and 0 deletions
Binary file not shown.
|
@ -48,6 +48,8 @@ module XfOOrth
|
|||
def <<(text)
|
||||
dbg_puts " Append=#{text.inspect}"
|
||||
@buffer << text
|
||||
rescue NoMethodError
|
||||
error "F14: The current mode does not allow code to be appended."
|
||||
end
|
||||
|
||||
#Execute code from the interactive console.
|
||||
|
|
Loading…
Reference in a new issue