bleppard commented on PR #142: URL: https://github.com/apache/avro/pull/142#issuecomment-1946265134
@mkmkme Unfortunately no. When avdl files are imported into another avdl, the imported definition is placed directly in the target. When the c++ header file is generated there is no "include" for the imported code. The pragma once would only work if the imported code was "included" rather than directly embedded. I find @moriarty 's solution quite acceptable. The alternate proposed solution of generating .h files for everything would be a disruptive, breaking change in our usage context. Perhaps if @moriarty 's solution could be invoked with a command line switch on avrogencpp we could get this functionality merged in? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
