~ubuntu-branches/ubuntu/gutsy/m4/gutsy

« back to all changes in this revision

Viewing changes to checks/036.ifdef

  • Committer: Bazaar Package Importer
  • Author(s): Santiago Vila
  • Date: 2006-09-25 19:20:30 UTC
  • mfrom: (1.2.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20060925192030-x9s2i4h7wlvsx7dy
Tags: 1.4.7-1
New upstream release. See the NEWS file for details.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl @ ../doc/m4.texinfo:1859: Origin of test
 
2
dnl @ Copyright (C) 2006 Free Software Foundation
 
3
dnl @ This file is free software; the Free Software Foundation
 
4
dnl @ gives unlimited permission to copy and/or distribute it
 
5
dnl @ with or without modifications, as long as this notice
 
6
dnl @ is preserved.
 
7
ifdef(`foo', ``foo' is defined', ``foo' is not defined')
 
8
dnl @result{}foo is not defined
 
9
define(`foo', `')
 
10
dnl @result{}
 
11
ifdef(`foo', ``foo' is defined', ``foo' is not defined')
 
12
dnl @result{}foo is defined
 
13
ifdef(`no_such_macro', `yes', `no', `extra argument')
 
14
dnl @error{}m4:stdin:4: Warning: excess arguments to builtin `ifdef' ignored
 
15
dnl @result{}no