KRASCHE
&
BYRNE
         ELZED  HOME       NEWS       DOCS       DOWNLOADS       LICENSING       SUPPORT       FAQ       ABOUT  US

What's An Elzed?
Features
Licensing
Downloads
Documentation
Elzed News
    ELZED 
 Documentation 
 The Details 
 API 

lzReadExpOpStr

The lzReadExpOpStr function completes the definition of a new expression-based operator.

long lzReadExpOpStr(
   char cScope,   // the scope of the new operator
   const char* szOperatorName,   // the name of the new operator
   const char* szFilePath   // the path to the expression file
);

Parameters

cScope
   A character code indicating the scope of the new operator. The character code must be one of the following values:

Code
Constant
Meaning
'C'
kCosmicScope
Available in all contexts
'G'
kGlobalScope
Available in current context only


szOperatorName
   A null-terminated character string containing the name of the new expression-based operator. Must be unique within the indicated scope.

szFilePath
   A character string containing the path to the text file containing the expression which will be evaluated when the new operator is invoked.

Return Value

   Returns an Elzed error code. If the operator is successfully defined, returns "No Error". Returns a non-zero Elzed error code if not successful. Call lzGetLastErrorText to determine the reason for the failure.

Versions

   Introduced in Elzed 1.0.0
Modified in Elzed 2.4.0 -- String (char*) parameters are now declared const.
   This page describes the version of lzReadExpOpStr active in Elzed 2.5.0 (223: 2.5.0)

See Also



  Copyright  ©  MMXXV  by  R R Le Cropane   •   All Rights Reserved   •   Terms of Use   •   Privacy Policy