parameters: ()
return_statement: return 910
docstring: Returns the version of the installed ETS Tool Suite as a
      decimal number.  This version comes from the ETS_VER #define in
      the embkern.h header.  For example, '#define ETS_VER 1010' (which
      is what Phar Lap 10.1 defines) would cause this method to return
      1010. Phar Lap 9.1 does not have such a #define, but this method
      will return 910 as a default.
  
      Raises UserError if no installed version of Phar Lap can
      be found.
docstring_summary: Returns the version of the installed ETS Tool Suite as a
      decimal number.  This version comes from the ETS_VER #define in
      the embkern.h header.  For example, '#define ETS_VER 1010' (which
      is what Phar Lap 10.1 defines) would cause this method to return
      1010. Phar Lap 9.1 does not have such a #define, but this method
      will return 910 as a default.
docstring_tokens: Returns the version of the installed ETS Tool Suite as a decimal number . This version comes from the ETS_VER #define in the embkern . h header . For example #define ETS_VER 1010 ( which is what Phar Lap 10 . 1 defines ) would cause this method to return 1010 . Phar Lap 9 . 1 does not have such a #define but this method will return 910 as a default .
function: def getPharLapVersion():
      """Returns the version of the installed ETS Tool Suite as a
      decimal number.  This version comes from the ETS_VER #define in
      the embkern.h header.  For example, '#define ETS_VER 1010' (which
      is what Phar Lap 10.1 defines) would cause this method to return
      1010. Phar Lap 9.1 does not have such a #define, but this method
      will return 910 as a default.
  
      Raises UserError if no installed version of Phar Lap can
      be found."""
  
      include_path = os.path.join(getPharLapPath(), os.path.normpath("include/embkern.h"))
      if not os.path.exists(include_path):
          raise SCons.Errors.UserError("Cannot find embkern.h in ETS include directory.\nIs Phar Lap ETS installed properly?")
      with open(include_path, 'r') as f:
          mo = REGEX_ETS_VER.search(f.read())
      if mo:
          return int(mo.group(1))
      # Default return for Phar Lap 9.1
      return 910
function_tokens: def getPharLapVersion ( ) : include_path = os . path . join ( getPharLapPath ( ) , os . path . normpath ( "include/embkern.h" ) ) if not os . path . exists ( include_path ) : raise SCons . Errors . UserError ( "Cannot find embkern.h in ETS include directory.\nIs Phar Lap ETS installed properly?" ) with open ( include_path , 'r' ) as f : mo = REGEX_ETS_VER . search ( f . read ( ) ) if mo : return int ( mo . group ( 1 ) ) # Default return for Phar Lap 9.1 return 910