xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

HB_SetMacro()

Enables or disables runtime behavior of the macro compiler.

Syntax

HB_SetMacro( <nMode>, [<lOnOff>] ) --> lOldSetting

Arguments

<nMode>
This is a numeric value used to enable/disable features of the macro compiler. #define constants listed in Hbmacro.ch are used to query or toggle individual features.

Features of the macro compiler
ConstantValueDefaultDescription
HB_SM_HARBOUR1ONSupport inline operators
HB_SM_XBASE2ONSupport comma separated expression lists
HB_SM_PREPROC4OFFSupport commands preprocessing
HB_SM_SHORTCUTS8ONSupport shortcuts for logical operators

<lOnOff>
A logical value. .T. (true) enables the feature specified with <nMode>, and .F. (false) disables it.

Return

The function returns the previous setting, active before HB_SetMacro() is called.

Description

This function enables or disables some features of the macro compiler. xHarbour is extending the macro features compared to an original set available in Clipper. Enabling/disabling some of them allows to keep strict Clipper compatibility.

Info

See also:& (macro operator)
Category: Indirect execution , xHarbour extensions
Source:vm\macro.c
LIB:xhb.lib
DLL:xhbdll.dll


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe