#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) |
|
Definition at line 47 of file colvarscript_commands_colvar.C. |
|
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. |