示例#1
0
 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.
 }
示例#2
0
 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.
 }