annotate src/VisVim/StdAfx.h @ 27112:60df9f2679a6 v8.2.4085

patch 8.2.4085: Vim9: no test for using import in legacy script Commit: https://github.com/vim/vim/commit/c43e6235c7b3e64f81c6a4e294e4e47abf7a869a Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jan 13 20:51:56 2022 +0000 patch 8.2.4085: Vim9: no test for using import in legacy script Problem: Vim9: no test for using import in legacy script. Solution: Add a test.
author Bram Moolenaar <Bram@vim.org>
date Thu, 13 Jan 2022 22:00:05 +0100
parents 3fc0f57ecb91
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 // Stdafx.h : include file for standard system include files,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 // or project specific include files that are used frequently, but
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 // are changed infrequently
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 //
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 #if !defined(AFX_STDAFX_H__AC72670E_2977_11D1_B2F3_006008040780__INCLUDED_)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 #define AFX_STDAFX_H__AC72670E_2977_11D1_B2F3_006008040780__INCLUDED_
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 #include <afxwin.h> // MFC core and standard components
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 #include <afxdisp.h>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 #include <atlbase.h>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 //You may derive a class from CComModule and use it if you want to override
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 //something, but do not change the name of _Module
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 extern CComModule _Module;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 #include <atlcom.h>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 // Developer Studio Object Model
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 #include <ObjModel\addauto.h>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 #include <ObjModel\appdefs.h>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 #include <ObjModel\appauto.h>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 #include <ObjModel\blddefs.h>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 #include <ObjModel\bldauto.h>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 #include <ObjModel\textdefs.h>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 #include <ObjModel\textauto.h>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 #include <ObjModel\dbgdefs.h>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 #include <ObjModel\dbgauto.h>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 /////////////////////////////////////////////////////////////////////////////
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 // Debugging support
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 // Use VERIFY_OK around all calls to the Developer Studio objects which
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 // you expect to return S_OK.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 // In DEBUG builds of your add-in, VERIFY_OK displays an ASSERT dialog box
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 // if the expression returns an HRESULT other than S_OK. If the HRESULT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 // is a success code, the ASSERT box will display that HRESULT. If it
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 // is a failure code, the ASSERT box will display that HRESULT plus the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 // error description string provided by the object which raised the error.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 // In RETAIL builds of your add-in, VERIFY_OK just evaluates the expression
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 // and ignores the returned HRESULT.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 #ifdef _DEBUG
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 void GetLastErrorDescription (CComBSTR & bstr); // Defined in VisVim.cpp
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 #define VERIFY_OK(f) \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 { \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 HRESULT hr = (f); \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 if (hr != S_OK) \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 { \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 if (FAILED(hr)) \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 { \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 CComBSTR bstr; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 GetLastErrorDescription(bstr); \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 _RPTF2(_CRT_ASSERT, "Object call returned %lx\n\n%S", hr, (BSTR) bstr); \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 } \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 else \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 _RPTF1(_CRT_ASSERT, "Object call returned %lx", hr); \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 } \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 #else //_DEBUG
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 #define VERIFY_OK(f) (f);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 #endif //_DEBUG
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 //{{AFX_INSERT_LOCATION}}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 #endif // !defined(AFX_STDAFX_H__AC72670E_2977_11D1_B2F3_006008040780__INCLUDED)