Skip to content

Latest commit

 

History

History
52 lines (47 loc) · 1.18 KB

File metadata and controls

52 lines (47 loc) · 1.18 KB
title LOCAL (MASM) | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-tools
ms.tgt_pltfrm
ms.topic article
f1_keywords
Local
dev_langs
C++
helpviewer_keywords
LOCAL directive
ms.assetid 76147e2d-23ca-4f1e-8817-81428becd113
caps.latest.revision 7
author corob-msft
ms.author corob
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

LOCAL (MASM)

In the first directive, within a macro, LOCAL defines labels that are unique to each instance of the macro.

Syntax

  
      LOCAL localname [[, localname]]...  
LOCAL label [[ [count ] ]] [[:type]] [[, label [[ [count] ]] [[type]]]]...  

Remarks

In the second directive, within a procedure definition (PROC), LOCAL creates stack-based variables that exist for the duration of the procedure. The label may be a simple variable or an array containing count elements.

See Also

Directives Reference