Re-added changed exportMacro documentation (got lost on revert).

This commit is contained in:
Mike Lischke 2016-12-19 18:08:33 +01:00
parent d324e9a46b
commit 7c4027118c
1 changed files with 2 additions and 1 deletions

View File

@ -95,7 +95,8 @@ The code generation (by running the ANTLR4 jar) allows to specify 2 values you m
#endif
#endif
```
Just like the `ANTLR4CPP_PUBLIC` macro here you can specify your own one for the generated classes using the **`-export-macro`** parameter.
Just like the `ANTLR4CPP_PUBLIC` macro here you can specify your own one for the generated classes using the **`-DexportMacro=...`** command-line parameter or
grammar option `options {exportMacro='...';}` in your grammar file.
In order to create a static lib in Visual Studio define the `ANTLR4CPP_STATIC` macro in addition to the project settings that must be set for a static library (if you compile the runtime yourself).