EasyManuals Logo
Home>Texas Instruments>Computer Hardware>TMS34010

Texas Instruments TMS34010 User Manual

Texas Instruments TMS34010
128 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #83 background imageLoading...
Page #83 background image
#define
Macro
Definition
with
Arguments
#define
Syntax
#define
<name>
(arg,
...
,arg)
<token-string>
Description
Subsequent occurrences
of
name
followed
immediately
by
a list
of
argu-
Example
C-2
ments separated
by
commas and enclosed in parentheses
are
replaced
by
token-string, where each occurrence
of
an
argument
is
replaced
by
the
corresponding set
of
tokens from the comma-separated ,string. When a
macro
with
arguments is expanded, the arguments are placed
into
the ex-
panded token-string unchanged. After the entire token-string has been ex-
panded,
GSPCPP scans again
for
names
to
expand
atthe
beginning'
of
the
newly
created token-string,
which
allows for' nested macros. '
Note that there
is
no space between name and the open parenthesis at the
beginning
of
the argument list.
AI~o;
there
is
no trailing semicolon (;).
#define
f(a,b,c)
3*a+b-c
causes
f(27,begin,minus)
whenever it occurs in the code,
to
be expanded
to
3*27+begin-minus

Table of Contents

Other manuals for Texas Instruments TMS34010

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments TMS34010 and is the answer not in the manual?

Texas Instruments TMS34010 Specifications

General IconGeneral
BrandTexas Instruments
ModelTMS34010
CategoryComputer Hardware
LanguageEnglish

Related product manuals