public SerializedType VisitStorageClass(StorageClassSpec storageClassSpec) { switch (storageClassSpec.Type) { case CTokenType.__Cdecl: case CTokenType.__Fastcall: case CTokenType.__Stdcall: ApplyCallConvention(storageClassSpec.Type); break; } return(dt); //$TODO make use of CDECL. }
public SerializedType VisitStorageClass(StorageClassSpec storageClassSpec) { switch (storageClassSpec.Type) { case CTokenType.__Cdecl: case CTokenType.__Fastcall: case CTokenType.__Stdcall: if (callingConvention != CTokenType.None) { throw new FormatException(string.Format("Unexpected extra calling convention specifier '{0}'.", callingConvention)); } callingConvention = storageClassSpec.Type; break; } return(dt); //$TODO make use of CDECL. }