◆ initArgs()

void syten::Test::initArgs ( int  argc_,
char **  argv_ 

Initialise binary_name with content from argv[0], if possible.

argc_number of command line arguments/size of argv
argv_array of c-strings
#include "inc/util/test.h"

int main(int argc, char** argv) {
  using namespace Test;
  Test::initArgs(argc, argv);

  log("Test ", 3.1415, " ", 42);

You can replace the first two lines in main() here by SYTEN_TEST.

References binary_name, syten::Threading::initThreadsEnv(), syten::Threading::initThreadsLogic(), log(), std::string::rfind(), and std::string::substr().

+ Here is the call graph for this function: