beautypg.com

Echelon Neuron User Manual

Page 89

background image

Neuron Tools Errors Guide

81

NCC#

Description

256

Attempt to #undef a name which is not a macro [NCC#256]

The preprocessor #undef command can only be applied to an identifier

which has previously been defined as a macro using the #define command.

257

Cannot redefine typedef name at file scope [NCC#257]

The rules of ANSI C permit redefinition of a typedef inside a nested scope
(for example,

in a function), but not at file scope. For example:

typedef unsigned int ui;

// The following redefinition is not permitted
unsigned short ui;

void f (void) {

// The following defines ui as a variable,

// which hides the typedef inside the function

unsigned short ui;

}

// The typedef ui is now no longer hidden
ui x;

258

Conditional compilation directives nested too deeply [NCC#258]

The maximum nesting level of the #ifdef/#ifndef/#if directives is 16.
Change your conditional compilation strategy if you are attempting to use

more than 16 levels of nested directives.

259

Misplaced #elif/#else directive [NCC#259]

The directive in question does not follow the appropriate #ifdef, or #ifndef

directive.

260

Too many arguments in macro being defined [NCC#260]

The maximum number of macro arguments that Neuron C supports is 16.

261

Macro argument name cannot be repeated [NCC#261]

Function-style macros (those which have a parameter list) must use a unique

name for each parameter.

262

Incorrect number of arguments for macro [NCC#262]

The invocation of the macro in question does not supply the correct number

of arguments. The number of arguments must be the same as the number
of formal parameters in the definition of the macro.

263

Array is too large for fastaccess feature [NCC#263]

An array declared with the optional fastaccess feature cannot exceed a total

size of 254 bytes.