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

colvarscript_commands_colvar.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_colvar.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_colvar.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_colvar_cmd_nargs(#COMM,                           \
                                       objc, N_ARGS_MIN, N_ARGS_MAX) != \
        COLVARSCRIPT_OK) {                                              \
      return COLVARSCRIPT_ERROR;                                        \
    }                                                                   \
    if (objc > 1) {                                                     \
                                   \
      (void) objv[0];                                                    \
    }                                                                   \
    colvar *this_colvar = colvar_obj(pobj);                             \
    FN_BODY;                                                            \
  }

Definition at line 25 of file colvarscript_commands_colvar.C.


Generated on Fri Nov 8 02:45:56 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002