From b6341430ddcfdb6a62202b924b182aed2555c137 Mon Sep 17 00:00:00 2001 From: SisMaker <1713699517@qq.com> Date: Fri, 9 Apr 2021 03:18:02 +0800 Subject: [PATCH] =?UTF-8?q?st:=20=E4=BB=A3=E7=A0=81=E6=A0=BC=E5=BC=8F?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/writeErl/gErlGen.erl | 2 +- test/protoMsg.hrl | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/writeErl/gErlGen.erl b/src/writeErl/gErlGen.erl index c340046..cf8e748 100644 --- a/src/writeErl/gErlGen.erl +++ b/src/writeErl/gErlGen.erl @@ -704,7 +704,7 @@ genErl(SortedSProtoList, SortedErrList, HrlDir, ErlDir) -> ErlHeaderStr = protoErlHeader(), HrlHeaderStr = protoHrlHeader(), OutputErlStr = <>, - OutputHrlStr = <>, + OutputHrlStr = <>, HrlFilename = do_write_hrl(HrlDir, protoMsg, OutputHrlStr), ErlFilename = do_write_erl(ErlDir, protoMsg, OutputErlStr), diff --git a/test/protoMsg.hrl b/test/protoMsg.hrl index 3f6cdab..a092bf3 100644 --- a/test/protoMsg.hrl +++ b/test/protoMsg.hrl @@ -16,6 +16,8 @@ -define(ERR7, 6). %% def -define(ERR8, 7). %% 其他注释辅导费 -define(ERR6, 1001). %% dfff + + -record(test, { aa = "" :: string() }).