forked from dliw/fpCEF3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcef.inc
48 lines (41 loc) · 1.35 KB
/
cef.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
(*
* Free Pascal Chromium Embedded 3
*
* Usage allowed under the restrictions of the Lesser GNU General Public License
* or alternatively the restrictions of the Mozilla Public License 1.1
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
* the specific language governing rights and limitations under the License.
*
* Author: d.l.i.w <[email protected]>
* Repository: http://github.com/dliw/fpCEF3
*
*
* Based on 'Delphi Chromium Embedded' by: Henri Gourvest <[email protected]>
* Repository : http://code.google.com/p/delphichromiumembedded/
*
* Embarcadero Technologies, Inc is not permitted to use or redistribute
* this source code without explicit permission.
*
*)
{.$DEFINE DEBUG}
// Don't change this, unless you know, what you are doing
{$DEFINE CEF_STRING_TYPE_UTF16}
{.$DEFINE CEF_STRING_TYPE_UTF8}
{.$DEFINE CEF_STRING_TYPE_WIDE}
{.$DEFINE CEF_MULTI_THREADED_MESSAGE_LOOP}
{$DEFINE SUPPORTS_INLINE}
// calling convention
{$MACRO ON}
{$IFDEF WINDOWS}
{$DEFINE cconv:=stdcall}
{$ELSE}
{$DEFINE cconv:=cdecl}
{$ENDIF}
// Sanity check
{$IFDEF CEF_MULTI_THREADED_MESSAGE_LOOP}
{$IFNDEF WINDOWS}
{$ERROR CEF doesn't support the mulithreaded message loop on systems other than Windows}
{$ENDIF}
{$ENDIF}