complex can now be used as an identifier
Remove final vestiges of 'complex' keyword. Closes #252
This commit is contained in:
parent
8edb047785
commit
638ca8152d
5 changed files with 25 additions and 1 deletions
13
Examples/test-suite/not_c_keywords.i
Normal file
13
Examples/test-suite/not_c_keywords.i
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
%module not_c_keywords
|
||||
|
||||
%extend ComplexStruct {
|
||||
void init() {
|
||||
$self->complex = 123;
|
||||
}
|
||||
}
|
||||
|
||||
%inline %{
|
||||
struct ComplexStruct {
|
||||
int complex; /* complex as variable name */
|
||||
};
|
||||
%}
|
||||
Loading…
Add table
Add a link
Reference in a new issue