background image
<< Programming Vuser Actions into a Script | LoadRunner controls the Vuser >>
<< Programming Vuser Actions into a Script | LoadRunner controls the Vuser >>

all C++ users

Creating Vuser Scripts
Chapter C, page 472
Appendixes · Programming Scripts on UNIX Platforms
In
Note that the template defines
extern C
for users of C++. This definition is required
for all C++ users, to ensure that none of the exported functions are inadvertantly
modified.
#include "lrun.h"
#if defined(__cplusplus) || defined(cplusplus) extern "C"
{
#endif
int LR_FUNC vuser_init(LR_PARAM p)
{
lr_message("vuser_init done\n");
return 0;
}
int Actions(LR_PARAM p)
{
lr_message("Actions done\n");
return 0;
}
int vuser_end(LR_PARAM p)
{
lr_message("vuser_end done\n");
return 0 ;
}
#if defined(__cplusplus) || defined(cplusplus) }
#endif