IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 8, 2008, 10:44:37 AM (18 years ago)
Author:
Paul Price
Message:

Adding function to add standard arguments to the poll functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/pantasks.pro

    r18418 r19407  
    183183end
    184184
     185# Add standard arguments to the poll functions
     186macro add_poll_args
     187    if ($0 != 2)
     188        echo "Must pass in the command of interest, and this function will supplement"
     189        stop
     190    end
     191
     192    local command
     193    $command = $$1
     194
     195    # Only process the data with the specified label.
     196    if ($?LABEL && "$LABEL" != "NONE")
     197        $command = $command -label $LABEL
     198    end
     199
     200    $$1 = $command
     201end
     202
    185203macro add_standard_args
    186204  if ($0 != 2)
Note: See TracChangeset for help on using the changeset viewer.