swig/Examples/test-suite/errors/pp_unknowndirective4.i
Olly Betts a7ff0da1f3 Improve parsing of % followed immediately by identifier
If it's not a recognised directive the scanner now emits MODULO and then
rescans what follows, and if the parser then gives a syntax error we
report it as an unknown directive. This means that `a%b` is now allowed
in an expression, and that things like `%std::vector<std::string>` now
give an error rather than being quietly ignored.

Fixes #300
Fixes #368
2022-02-15 15:09:44 +13:00

7 lines
329 B
OpenEdge ABL

%module xxx
/* Regression test for bug #368 introduced in 3.0.4 and fully fixed in 4.1.0.
* The `%std` here led to SWIG calling abort() before 3.0.6, and was quietly
* ignored in from 3.0.6 until 4.1.0.
*/
%typemap(jstype) std::vector<std::string>, const %std::vector<std::string>&, std::vector<std::string>& "List<String>"