Built-in Macros

이전 메뉴에서 소개가 안 된 매크로들입니다.

m4 실행 시 디폴트로 존재하는 built-in 매크로들

$ echo dumpdef | m4 
__file__:       <__file__>
__gnu__:
__line__:       <__line__>
__program__:    <__program__>
__unix__:
builtin:        <builtin>
changecom:      <changecom>
changequote:    <changequote>
debugfile:      <debugfile>
debugmode:      <debugmode>
decr:   <decr>
define: <define>
defn:   <defn>
divert: <divert>
divnum: <divnum>
dnl:    <dnl>
dumpdef:        <dumpdef>
errprint:       <errprint>
esyscmd:        <esyscmd>
eval:   <eval>
format: <format>
ifdef:  <ifdef>
ifelse: <ifelse>
include:        <include>
incr:   <incr>
index:  <index>
indir:  <indir>
len:    <len>
m4exit: <m4exit>
m4wrap: <m4wrap>
maketemp:       <maketemp>
mkstemp:        <mkstemp>
patsubst:       <patsubst>
popdef: <popdef>
pushdef:        <pushdef>
regexp: <regexp>
shift:  <shift>
sinclude:       <sinclude>
substr: <substr>
syscmd: <syscmd>
sysval: <sysval>
traceoff:       <traceoff>
traceon:        <traceon>
translit:       <translit>
undefine:       <undefine>
undivert:       <undivert>