A2381: Previous message was in this context `<Context>'

[DISABLED, INFORMATION, WARNING, ERROR]

Description

The previous message was in a special context. Usually this message is used to show the current macro expansion tree.

Example
  TABLE: MACRO

       ; \1: size of table to be generated

       ; \2: current value for table

  \@size: EQU \1

          if (\@size >= 2)

            TABLE \@size/2,\2

            TABLE \@size-\@size/2,\2+\@size/2

          else

            if (\@size == 1)

              DC \2

            endif

          endif

         ENDM

      TABLE 4
  

Generates the following messages:

  b.asm(9): ERROR A1055: Error in expression

  INFORMATION Macro Expansion             DC

  b.asm(5): INFORMATION A2381: Previous message was in this 
  context 'Macro Invocation'
  

So the error happens at line 9 ("DC \2") which was called by line 5 twice and finally by line 14. To fix this example, add a second parameter to the TABLE macro call:

      TABLE 4,0

  
Tips

Check the message before the first A2381 to see the cause of the problem.