Changeset 15101 for trunk/FACT++


Ignore:
Timestamp:
03/18/13 14:54:54 (12 years ago)
Author:
tbretz
Message:
Set a script depth!=0 when a script is running to avoid smartfact doing the wrong sound.
Location:
trunk/FACT++/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/InterpreterV8.cc

    r15078 r15101  
    22292229}
    22302230
     2231void InterpreterV8::JsLoad(const std::string &)
     2232{
     2233    Readline::SetScriptDepth(1);
     2234}
     2235
     2236void InterpreterV8::JsEnd(const std::string &)
     2237{
     2238    Readline::SetScriptDepth(0);
     2239}
     2240
    22312241bool InterpreterV8::JsRun(const string &filename, const map<string, string> &map)
    22322242{
  • trunk/FACT++/src/InterpreterV8.h

    r15078 r15101  
    171171    }
    172172
    173     virtual void  JsLoad(const std::string &) { }
     173    virtual void  JsLoad(const std::string & = "");
    174174    virtual void  JsStart(const std::string &) { }
    175     virtual void  JsEnd(const std::string &) { }
     175    virtual void  JsEnd(const std::string & = "");
    176176    virtual void  JsPrint(const std::string & = "") { }
    177177    virtual void  JsAlarm(const std::string & = "") { }
Note: See TracChangeset for help on using the changeset viewer.