SyTen

◆ initArgs()

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

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

Parameters
argc_number of command line arguments/size of argv
argv_array of c-strings
Example
#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.

Definition at line 10 of file test.cpp.

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: