registerDbgFlag()

Registers a debug flag and returns a debug flag number.

Synopsis

int registerDbgFlag(string name);

Parameters

Parameter Description
name Name of the debug flag.

Return value

The function returns int (the debug flag number).

Error

Invalid or missing argument

Description

Registers a debug flag and returns a debug flag number.

Example

The following example registers three debug flags and returns their debug flag numbers.

main()
{
  int dbgFlagNum,i;
  string dbgFlagName = "dbgFlagName";
  while (i<3)
  {
    dbgFlagNum = registerDbgFlag(dbgFlagName+i);
    DebugN("The registered debug flag is", dbgFlagName+i,"
    ","Number", dbgFlagNum);
    i++;
  }
}

Assignment

Administration of managers...

Availability

CTRL