Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
3964f805
Commit
3964f805
authored
May 03, 2013
by
Ken Thomases
Committed by
Alexandre Julliard
May 06, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemac: Change some run-time asserts to compile-time.
parent
ce6a037a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
macdrv_main.c
dlls/winemac.drv/macdrv_main.c
+2
-2
opengl.c
dlls/winemac.drv/opengl.c
+1
-2
No files found.
dlls/winemac.drv/macdrv_main.c
View file @
3964f805
...
...
@@ -37,6 +37,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(macdrv);
#define kCFCoreFoundationVersionNumber10_7 635.00
#endif
C_ASSERT
(
NUM_EVENT_TYPES
<=
sizeof
(
macdrv_event_mask
)
*
8
);
DWORD
thread_data_tls_index
=
TLS_OUT_OF_INDEXES
;
...
...
@@ -96,8 +98,6 @@ static BOOL process_attach(void)
SessionAttributeBits
attributes
;
OSStatus
status
;
assert
(
NUM_EVENT_TYPES
<=
sizeof
(
macdrv_event_mask
)
*
8
);
status
=
SessionGetInfo
(
callerSecuritySession
,
NULL
,
&
attributes
);
if
(
status
!=
noErr
||
!
(
attributes
&
sessionHasGraphicAccess
))
return
FALSE
;
...
...
dlls/winemac.drv/opengl.c
View file @
3964f805
...
...
@@ -231,6 +231,7 @@ typedef union
pixel_format
format
;
UInt64
code
;
}
pixel_format_or_code
;
C_ASSERT
(
sizeof
(((
pixel_format_or_code
*
)
0
)
->
format
)
<=
sizeof
(((
pixel_format_or_code
*
)
0
)
->
code
));
static
pixel_format
*
pixel_formats
;
...
...
@@ -1080,8 +1081,6 @@ static BOOL init_pixel_formats(void)
TRACE
(
"()
\n
"
);
assert
(
sizeof
(((
pixel_format_or_code
*
)
0
)
->
format
)
<=
sizeof
(((
pixel_format_or_code
*
)
0
)
->
code
));
err
=
CGLQueryRendererInfo
(
CGDisplayIDToOpenGLDisplayMask
(
CGMainDisplayID
()),
&
renderer_info
,
&
rendererCount
);
if
(
err
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment