Commit 80cca7c4 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

make has_XXX_support functions static, so they can be called without having to...

make has_XXX_support functions static, so they can be called without having to create an instance of Info, which requires a fully instantiation of the LAMMPS and Pointers classes
parent 7da8e69b
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -1143,7 +1143,7 @@ static void print_columns(FILE* fp, vector<string> & styles)
  }
}

bool Info::has_gzip_support() const {
bool Info::has_gzip_support() {
#ifdef LAMMPS_GZIP
  return true;
#else
@@ -1151,7 +1151,7 @@ bool Info::has_gzip_support() const {
#endif
}

bool Info::has_png_support() const {
bool Info::has_png_support() {
#ifdef LAMMPS_PNG
  return true;
#else
@@ -1159,7 +1159,7 @@ bool Info::has_png_support() const {
#endif
}

bool Info::has_jpeg_support() const {
bool Info::has_jpeg_support() {
#ifdef LAMMPS_JPEG
  return true;
#else
@@ -1167,7 +1167,7 @@ bool Info::has_jpeg_support() const {
#endif
}

bool Info::has_ffmpeg_support() const {
bool Info::has_ffmpeg_support() {
#ifdef LAMMPS_FFMPEG
  return true;
#else
@@ -1175,7 +1175,7 @@ bool Info::has_ffmpeg_support() const {
#endif
}

bool Info::has_exceptions() const {
bool Info::has_exceptions() {
#ifdef LAMMPS_EXCEPTIONS
  return true;
#else
+5 −5
Original line number Diff line number Diff line
@@ -33,11 +33,11 @@ class Info : protected Pointers {
  bool is_defined(const char *, const char *);
  bool is_available(const char *, const char *);

  bool has_gzip_support() const;
  bool has_png_support() const;
  bool has_jpeg_support() const;
  bool has_ffmpeg_support() const;
  bool has_exceptions() const;
  static bool has_gzip_support();
  static bool has_png_support();
  static bool has_jpeg_support();
  static bool has_ffmpeg_support();
  static bool has_exceptions();

  char **get_variable_names(int &num);