[previous] 1004 [next] [S] '#endasm' found without matching '#asm' preprocessing directive.
Syntax errors

When analysis is run with the option "-ex asm", there are various forms of inline assembler code statements which may be successfully parsed and ignored. One such mechanism is to surround the assembler statements with two directives: #asm and #endasm.

If QA·C encounters #endasm without a preceding #asm directive, message 1004 will be generated. For example:


/*PRQA S 553 ++*/
/*************************/
/* OPTIONS: -ex asm      */
/*************************/

asm {MOV R1,A; XOR A,R2;}                    /* Message 1006 */
#endasm                                      /* Message 1004 */

See also:

QA·C Source Code Analyser 8.1.2
© 2013 Programming Research.
www.programmingresearch.com
Personality Groups | Glossary | Message Index Contents