A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/bytedeco/javacpp/issues/674 below:

Parser exception when expanding macros of macros · Issue #674 · bytedeco/javacpp · GitHub

#define X(methodname) \
  void methodname(    \
      int i);

class C {
#define Y X(f)

public:
  Y
};

Parsing this header throws:

Info: Parsing m.h
Exception in thread "main" org.bytedeco.javacpp.tools.ParserException: m.h:6:"#define X(methodname)
  void methodname(
      int i);": Could not parse declaration at ')'
	at org.bytedeco.javacpp.tools.Parser.declarations(Parser.java:4220)

I think this is related to \n in the first macro that are expanded in the second as true \n, making this loop end too soon.

How to fix this ?


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4