Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

colvarscript_commands_bias.C File Reference

#include <vector>
#include <cstdlib>
#include <stdlib.h>
#include <string.h>
#include "colvarproxy.h"
#include "colvardeps.h"
#include "colvarscript.h"
#include "colvarscript_commands.h"
#include "colvarscript_commands_bias.h"

Go to the source code of this file.

Defines

#define CVSCRIPT_COMM_FN(COMM, N_ARGS_MIN, N_ARGS_MAX, ARGS, FN_BODY)
#define CVSCRIPT(COMM, HELP, N_ARGS_MIN, N_ARGS_MAX, ARGS, FN_BODY)   CVSCRIPT_COMM_FN(COMM,N_ARGS_MIN,N_ARGS_MAX,ARGS,FN_BODY)


Define Documentation

#define CVSCRIPT COMM,
HELP,
N_ARGS_MIN,
N_ARGS_MAX,
ARGS,
FN_BODY       CVSCRIPT_COMM_FN(COMM,N_ARGS_MIN,N_ARGS_MAX,ARGS,FN_BODY)
 

Definition at line 47 of file colvarscript_commands_bias.C.

#define CVSCRIPT_COMM_FN COMM,
N_ARGS_MIN,
N_ARGS_MAX,
ARGS,
FN_BODY   
 

Value:

int CVSCRIPT_COMM_FNAME(COMM)(void *pobj,                             \
                                int objc, unsigned char *const objv[])  \
  {                                                                     \
    if (cvm::debug()) {                                                 \
      cvm::log("Executing script function \""+std::string(#COMM)+"\""); \
    }                                                                   \
    colvarscript *script = colvarscript_obj();                          \
    script->clear_str_result();                                         \
    if (script->check_bias_cmd_nargs(#COMM,                             \
                                     objc, N_ARGS_MIN, N_ARGS_MAX) !=   \
        COLVARSCRIPT_OK) {                                              \
      return COLVARSCRIPT_ERROR;                                        \
    }                                                                   \
    if (objc > 1) {                                                     \
                                   \
      (void) objv;                                                      \
    }                                                                   \
    colvarbias *this_bias = colvarbias_obj(pobj);                       \
    FN_BODY;                                                            \
  }

Definition at line 25 of file colvarscript_commands_bias.C.


Generated on Tue Apr 16 02:46:37 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002