VirtualBox

Changeset 2159 in kBuild for trunk/src/kmk/tests/scripts


Ignore:
Timestamp:
Dec 29, 2008 4:08:15 PM (16 years ago)
Author:
bird
Message:

kmk: extended call, evalcall and evalcall2 with a local .ARGC automatic variable holding the argument count.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/tests/scripts/functions/evalcall

    r2158 r2159  
    7777endif
    7878
    79 # negative tests:
     79
     80# Negative tests:
    8081
    8182.RETURN = $2 $1
     
    9192endif
    9293
     94
     95# Test .ARGC:
     96
     97FUNC = local .RETURN = $(.ARGC)
     98ifneq ($(evalcall FUNC,a,b),2)
     99$(error sub-test 20 failed)
     100endif
     101ifneq ($(evalcall FUNC),0)
     102$(error sub-test 21 failed)
     103endif
     104ifneq ($(evalcall FUNC,aasdfasdf),1)
     105$(error sub-test 22 failed)
     106endif
     107
     108
    93109.PHONY: all
    94110all: ; @:
     
    99115
    100116
    101 
    102117# Indicate that we're done.
    1031181;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette