From 4458950fd83a14148270348cde3bd4433347eca7 Mon Sep 17 00:00:00 2001 From: Mike Lischke Date: Mon, 19 Dec 2016 18:10:39 +0100 Subject: [PATCH] Re-added changed exportMacro documentation (got lost on revert). --- doc/cpp-target.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/cpp-target.md b/doc/cpp-target.md index 196f20e97..171da856e 100644 --- a/doc/cpp-target.md +++ b/doc/cpp-target.md @@ -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).