add Objective C 'ATOMIC' for type-encoding 'A' modifier

This commit is contained in:
Jason P. Leasure 2020-10-30 15:57:18 -04:00
parent 8dffa0384e
commit 81a25b6c0e
2 changed files with 13 additions and 2 deletions

View file

@ -83,7 +83,12 @@ public class ParameterDefinitionImpl implements ParameterDefinition {
throw new IllegalArgumentException(kind +
" type must be specified with fixed-length data type: " + dataType.getName());
}
if (dataType instanceof VoidDataType) {
DataType baseType = dataType;
if(baseType instanceof TypedefDataType) {
baseType = ((TypedefDataType)baseType).getBaseDataType();
}
if (baseType instanceof VoidDataType) {
if (!isReturn) {
throw new IllegalArgumentException(
"Parameter type may not specify the void datatype - empty parameter list should be used");