Browse Source

Fixed issue not picking up some function call types.

woollybah 7 năm trước cách đây
mục cha
commit
1e4841e5fd
2 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 1 0
      decl.bmx
  2. 1 0
      parser.bmx

+ 1 - 0
decl.bmx

@@ -42,6 +42,7 @@ Const DECL_PROTECTED:Int=    $4000000
 Const DECL_API_CDECL:Int=   $00000000
 Const DECL_API_STDCALL:Int= $10000000
 Const DECL_API_DEFAULT:Int=DECL_API_CDECL
+Const DECL_API_FLAGS:Int=   DECL_API_CDECL | DECL_API_STDCALL
 
 Const DECL_NESTED:Int=      $20000000
 

+ 1 - 0
parser.bmx

@@ -2716,6 +2716,7 @@ End Rem
 			Local fdecl:TFuncDecl = TFunctionPtrType(ty).func
 			ty = fdecl.retTypeExpr
 			args = fdecl.argDecls
+			attrs :| (fdecl.attrs & DECL_API_FLAGS)
 		End If